]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/difftool: remove unnecessary if statement
authorUsman Akinyemi <usmanakinyemi202@gmail.com>
Sun, 20 Apr 2025 02:54:33 +0000 (08:24 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Apr 2025 21:17:22 +0000 (14:17 -0700)
commitb502a648ef185e7e24ef80097330c44cca510264
tree3566827177e9a2ee3bd410f9b7c33e95a4d5c178
parent2e4e439ec27c1d14f205bdd3cceb51b30c5d6d74
builtin/difftool: remove unnecessary if statement

Since we already teach the `repo_config()` in "f29f1990b5
(config: teach repo_config to allow `repo` to be NULL, 2025-03-08)"
to allow `repo` to be NULL, no need to check if `repo` is NULL
before calling `repo_config()`.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/difftool.c