]> git.99rst.org Git - git.git/commit
builtin/add: remove unnecessary if statement
authorUsman Akinyemi <redacted>
Sun, 20 Apr 2025 02:54:32 +0000 (08:24 +0530)
committerJunio C Hamano <redacted>
Sun, 20 Apr 2025 21:17:20 +0000 (14:17 -0700)
commit2e4e439ec27c1d14f205bdd3cceb51b30c5d6d74
tree4f107d2594994891a3743f75be2f300d9835a754
parent1a764cdbdcaba4e9b1d4d5d00b51716977178392
builtin/add: 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 <redacted>
Mentored-by: Christian Couder <redacted>
Signed-off-by: Usman Akinyemi <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/add.c
git clone https://git.99rst.org/PROJECT