Skip to content

Commit

Permalink
pan/functions: miscellaneous code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jouvin committed Jun 3, 2018
1 parent ec462ff commit 801eb2c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pan/functions.pan
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ function npush = {
n = dict();
index = 0;
while (index < ARGC) {
if (!is_string(ARGV[index]))
error(format("key is not a string: %s", ARGV[index]));
n[ARGV[index]] = ARGV[index + 1];
if (!is_string(ARGV[index])) error(format("key is not a string: %s", ARGV[index]));
n[ARGV[index]] = ARGV[index+1];
index = index + 2;
};

Expand Down Expand Up @@ -138,7 +137,6 @@ function push_if = {
};

} else {

# Return either SELF or an empty list.
if (is_defined(SELF)) {
v = SELF;
Expand Down Expand Up @@ -190,7 +188,7 @@ function domain_from_object = {
# Check if a default domain has been defined
if ( ARGC == 1 ) {
# Default domain name is no longer used and passing the argument is deprecaded
deprecated(0, 'Using default_domain argument is deprecated. Use domain_from_object() instead');
deprecated(0, 'Using default_domain argument is deprecated. Use domain_from_object() instead');
} else if ( ARGC > 1 ) {
error("usage: domain_from_object()");
};
Expand Down

0 comments on commit 801eb2c

Please sign in to comment.