Diff options
authorJason A. Donenfeld <Jason@zx2c4.com>
committerJason A. Donenfeld <Jason@zx2c4.com>
commit
parent
tree
download
filter: return on null filter from open and close
So that we don't have to include the if(filter) open_filter(filter) block everywhere, we introduce the guard in the function itself. This should simplify quite a bit of code. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--filter.c4
-rw-r--r--ui-commit.c18
-rw-r--r--ui-repolist.c6
-rw-r--r--ui-summary.c8
4 files changed, 14 insertions, 22 deletions