]> git.ipfire.org Git - thirdparty/git.git/commit
ref-filter: remove unnecessary else clause
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 15 Jul 2025 11:28:29 +0000 (13:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2025 18:54:20 +0000 (11:54 -0700)
commit526530a16a3c345643afb324107b4a216b8d37ff
tree1466dd3c06190404557a1aaa7161bd2f24ed4f68
parent2b4648b9190b552e942d93363482bd617a510fc1
ref-filter: remove unnecessary else clause

In 'ref-filter.c', there is an 'else' clause within `do_filter_refs()`.
This is unnecessary since the 'if' clause calls `die()`, which would
exit the program. So let's remove the unnecessary 'else' clause. This
improves readability since the indentation is also reduced and flow is
simpler.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c