Re: [PATCH 9/9] builtin/update-server-info: remove unnecessary if statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 18, 2025 at 05:29:01PM +0530, Usman Akinyemi wrote:
> Since we already teach the `repo_config()` to allow `repo`
> to be NULL, no need to check if `repo` is NULL before calling
> `repo_config()`.

I think it would be preferable to reorder this patch so that it comes
immediately after the one where you adapt `repo_config()`.

We also have a couple of additional sites where we call the function
conditionally:

  - builtin/add.c
  - builtin/difftool.c
  - builtin/update-server-info.c

It would probably make sense to also adapt those.

Patrick




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux