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 <isaac@isaacbrodsky.com>
  • Loading branch information
dfellis and isaacbrodsky authored Oct 14, 2024
1 parent d3a5a77 commit bcaac46
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 @@ -1381,7 +1381,7 @@ SUBCOMMAND(
Arg *args[] = {&polygonToCellsArg, &helpArg, &filenameArg, &polygonStrArg,
&resArg};
PARSE_SUBCOMMAND(argc, argv, args);
if (!filenameArg.found && !polygonStrArg.found) {
if (filenameArg.found == polygonStrArg.found) {
fprintf(stderr,
"You must provide either a file to read from or a polygon "
"to cover to use polygonToCells");
Expand Down Expand Up @@ -1472,7 +1472,7 @@ SUBCOMMAND(
Arg *args[] = {&maxPolygonToCellsSizeArg, &helpArg, &filenameArg,
&polygonStrArg, &resArg};
PARSE_SUBCOMMAND(argc, argv, args);
if (!filenameArg.found && !polygonStrArg.found) {
if (filenameArg.found == polygonStrArg.found) {
fprintf(stderr,
"You must provide either a file to read from or a polygon "
"to cover to use maxPolygonToCellsSize");
Expand Down Expand Up @@ -1541,7 +1541,7 @@ SUBCOMMAND(cellsToMultiPolygon,
Arg *args[] = {&cellsToMultiPolygonArg, &helpArg, &filenameArg,
&cellStrsArg};
PARSE_SUBCOMMAND(argc, argv, args);
if (!filenameArg.found && !cellStrsArg.found) {
if (filenameArg.found == polygonStrArg.found) {
fprintf(stderr,
"You must provide either a file to read from or a set of cells "
"to convert to use cellsToMultiPolygon");
Expand Down

0 comments on commit bcaac46

Please sign in to comment.