Skip to content

Commit

Permalink
removed unneeded newlines in if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmealey committed Oct 29, 2023
1 parent 77d9b5e commit f1d4e59
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,11 @@ static int getarg(struct option *o,
urlfile(o, arg);
*usedarg = true;
}
else if(checkoptarg("-a", flag, arg) ||
checkoptarg("--append", flag, arg)) {
else if(checkoptarg("-a", flag, arg) || checkoptarg("--append", flag, arg)) {
appendadd(o, arg);
*usedarg = true;
}
else if(checkoptarg("-s", flag, arg) ||
checkoptarg("--set", flag, arg)) {
else if(checkoptarg("-s", flag, arg) || checkoptarg("--set", flag, arg)) {
setadd(o, arg);
*usedarg = true;
}
Expand All @@ -480,8 +478,7 @@ static int getarg(struct option *o,
trimadd(o, arg);
*usedarg = true;
}
else if(checkoptarg("-g", flag, arg) ||
checkoptarg("--get", flag, arg)) {
else if(checkoptarg("-g", flag, arg) || checkoptarg("--get", flag, arg)) {
if(o->format)
errorf(ERROR_FLAG, "only one --get is supported");
if(o->jsonout)
Expand Down

0 comments on commit f1d4e59

Please sign in to comment.