mirror of
https://github.com/git/git.git
synced 2025-09-10 22:44:50 +02:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
2e4e439ec2
commit
b502a648ef
@@ -750,8 +750,7 @@ int cmd_difftool(int argc,
|
||||
};
|
||||
struct child_process child = CHILD_PROCESS_INIT;
|
||||
|
||||
if (repo)
|
||||
repo_config(repo, difftool_config, &dt_options);
|
||||
repo_config(repo, difftool_config, &dt_options);
|
||||
dt_options.symlinks = dt_options.has_symlinks;
|
||||
|
||||
argc = parse_options(argc, argv, prefix, builtin_difftool_options,
|
||||
|
||||
Reference in New Issue
Block a user