diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-05-02 10:13:34 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-05-02 10:13:34 -0700 |
| commit | f357d46adacb8d7f2c465a00c66a57d925396bfe (patch) | |
| tree | bdd69f42b9b3f16329f77290b5b6697e44d3d92f /bundle-uri.c | |
| parent | 39273126017b287028f7d661ef455a0a0fe20880 (diff) | |
| parent | 0b1a95ef793716e7e51caf929b971ee2cbf4116d (diff) | |
| download | git-f357d46adacb8d7f2c465a00c66a57d925396bfe.tar.xz | |
Merge branch 'jk/misc-null-check-fixes'
Code clean-up.
* jk/misc-null-check-fixes:
fetch_bundle_uri(): drop pointless NULL check
notes: clean up confusing NULL checks in init_notes()
Diffstat (limited to 'bundle-uri.c')
| -rw-r--r-- | bundle-uri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle-uri.c b/bundle-uri.c index e2b267cc02..f22490a2ca 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -795,10 +795,10 @@ int fetch_bundle_uri(struct repository *r, const char *uri, init_bundle_list(&list); /* - * Do not fetch a NULL or empty bundle URI. An empty bundle URI + * Do not fetch an empty bundle URI. An empty bundle URI * could signal that a configured bundle URI has been disabled. */ - if (!uri || !*uri) { + if (!*uri) { result = 0; goto cleanup; } |
