Skip to content

remove unnecessary if statement

Usman Akinyemi git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2builtin/add: remove unnecessary if statementbuiltin/add.c+1 -20 replies
2/2builtin/difftool: remove unnecessary if statementbuiltin/difftool.c+1 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchChristian Couder
1/2Mentored-by
2/2Mentored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] 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().

This was suggested by Patrick Steinhardt <[email protected]>

Usman Akinyemi (2):
builtin/add: remove unnecessary if statement builtin/difftool: remove unnecessary if statement

 builtin/add.c      | 3 +--
 builtin/difftool.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
Signature · 1 line
2.49.0