Skip to content

Commit

Permalink
Remove duplicate argument check (#178)
Browse files Browse the repository at this point in the history
In do_size, argument checks are duplicated, with the second instance
deemed redundant.
  • Loading branch information
aftuta85 authored Mar 28, 2024
1 parent d43e072 commit 297bb61
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions qtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,6 @@ static bool do_size(int argc, char *argv[])

int reps = 1;
bool ok = true;
if (argc != 1 && argc != 2) {
report(1, "%s needs 0-1 arguments", argv[0]);
return false;
}

if (argc == 2) {
if (!get_int(argv[1], &reps))
report(1, "Invalid number of calls to size '%s'", argv[2]);
Expand Down

0 comments on commit 297bb61

Please sign in to comment.