Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Brodsky <[email protected]>
  • Loading branch information
dfellis and isaacbrodsky authored Oct 14, 2024
1 parent a4427ef commit cd00c06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/filters/h3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ SUBCOMMAND(greatCircleDistanceRads,
Arg *args[] = {&greatCircleDistanceRadsArg, &filenameArg, &coordinateStrArg,
&helpArg};
PARSE_SUBCOMMAND(argc, argv, args);
if (!filenameArg.found && !coordinateStrArg.found) {
if (filenameArg.found == coordinateStrArg.found) {
fprintf(
stderr,
"You must provide either a file to read from or a coordinate array "
Expand Down Expand Up @@ -2289,7 +2289,7 @@ SUBCOMMAND(greatCircleDistanceKm,
Arg *args[] = {&greatCircleDistanceKmArg, &filenameArg, &coordinateStrArg,
&helpArg};
PARSE_SUBCOMMAND(argc, argv, args);
if (!filenameArg.found && !coordinateStrArg.found) {
if (filenameArg.found == coordinateStrArg.found) {
fprintf(
stderr,
"You must provide either a file to read from or a coordinate array "
Expand Down Expand Up @@ -2360,7 +2360,7 @@ SUBCOMMAND(greatCircleDistanceM,
Arg *args[] = {&greatCircleDistanceMArg, &filenameArg, &coordinateStrArg,
&helpArg};
PARSE_SUBCOMMAND(argc, argv, args);
if (!filenameArg.found && !coordinateStrArg.found) {
if (filenameArg.found == coordinateStrArg.found) {
fprintf(
stderr,
"You must provide either a file to read from or a coordinate array "
Expand Down

0 comments on commit cd00c06

Please sign in to comment.