Skip to content

Commit 297bb61

Browse files
authored
Remove duplicate argument check (#178)
In do_size, argument checks are duplicated, with the second instance deemed redundant.
1 parent d43e072 commit 297bb61

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

qtest.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,6 @@ static bool do_size(int argc, char *argv[])
542542

543543
int reps = 1;
544544
bool ok = true;
545-
if (argc != 1 && argc != 2) {
546-
report(1, "%s needs 0-1 arguments", argv[0]);
547-
return false;
548-
}
549-
550545
if (argc == 2) {
551546
if (!get_int(argv[1], &reps))
552547
report(1, "Invalid number of calls to size '%s'", argv[2]);

0 commit comments

Comments
 (0)