diff options
author | David Robillard <d@drobilla.net> | 2020-12-31 14:56:07 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-31 15:21:10 +0100 |
commit | 841c766d86dc35ab37c4fef8ec866d06c41bc383 (patch) | |
tree | 3959f9290e8b48f801cae52b7397eaa249c6e5cb /test/bitset_test.c | |
parent | 5ca5c874e2409b32fbdc4b46a1ba3b5a9200542f (diff) | |
download | zix-841c766d86dc35ab37c4fef8ec866d06c41bc383.tar.gz zix-841c766d86dc35ab37c4fef8ec866d06c41bc383.tar.bz2 zix-841c766d86dc35ab37c4fef8ec866d06c41bc383.zip |
Avoid "else" after "return"
Diffstat (limited to 'test/bitset_test.c')
-rw-r--r-- | test/bitset_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/bitset_test.c b/test/bitset_test.c index 554e238..8fa610f 100644 --- a/test/bitset_test.c +++ b/test/bitset_test.c @@ -53,7 +53,9 @@ main(void) const size_t count = zix_bitset_count_up_to(b, t, N_BITS); if (count != i + 1) { return test_fail("Count %zu != %zu\n", count, i + 1); - } else if (!zix_bitset_get(b, i)) { + } + + if (!zix_bitset_get(b, i)) { return test_fail("Bit %zu is not set\n", i); } } |