Skip to content

Commit 587c3d0

Browse files
avargitster
authored andcommitted
progress.c test helper: add missing braces
If we have braces on one arm of an if/else all of them should have it, per the CodingGuidelines's "When there are multiple arms to a conditional[...]" advice. This formatting change makes a subsequent commit smaller. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8266e0c commit 587c3d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/helper/test-progress.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ int cmd__progress(int argc, const char **argv)
6363
die("invalid input: '%s'\n", line.buf);
6464
progress_test_ns = test_ms * 1000 * 1000;
6565
display_throughput(progress, byte_count);
66-
} else if (!strcmp(line.buf, "update"))
66+
} else if (!strcmp(line.buf, "update")) {
6767
progress_test_force_update();
68-
else
68+
} else {
6969
die("invalid input: '%s'\n", line.buf);
70+
}
7071
}
7172
stop_progress(&progress);
7273
strbuf_release(&line);

0 commit comments

Comments
 (0)