git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] remove unnecessary if statement
@ 2025-04-20  2:54 Usman Akinyemi
  2025-04-20  2:54 ` [PATCH 1/2] builtin/add: " Usman Akinyemi
  2025-04-20  2:54 ` [PATCH 2/2] builtin/difftool: " Usman Akinyemi
  0 siblings, 2 replies; 3+ messages in thread
From: Usman Akinyemi @ 2025-04-20  2:54 UTC (permalink / raw)
  To: git, christian.couder
  Cc: gitster, johncai86, me, ps, shejialuo, phillip.wood123

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 <ps@pks.im>

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(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-20  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20  2:54 [PATCH 0/2] remove unnecessary if statement Usman Akinyemi
2025-04-20  2:54 ` [PATCH 1/2] builtin/add: " Usman Akinyemi
2025-04-20  2:54 ` [PATCH 2/2] builtin/difftool: " Usman Akinyemi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).