Skip to content

Commit

Permalink
Single return for long flag renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Nov 22, 2023
1 parent 2ad9c07 commit aefc936
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/gis/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,6 @@ void set_flag(int f)
"flag <%c> has been renamed to <%s>"),
G_program_name(), f, renamed_key);
st->overwrite = 1;
return;
}
else {
/* long flags other than --overwrite are usually specific to
Expand All @@ -1038,8 +1037,8 @@ void set_flag(int f)
"flag <%c> has been renamed to <%s>"),
G_program_name(), f, renamed_key);
append_error(err);
return;
}
return;
}
/* if renamed to a short flag */
for (flag = &st->first_flag; flag; flag = flag->next_flag) {
Expand Down

0 comments on commit aefc936

Please sign in to comment.