Skip to content

Commit 270cd9e

Browse files
stefanbellergitster
authored andcommitted
config.c: drop local variable
As `ret` is not used for anything except determining an early return, we don't need a variable for that. Drop it. Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9c60d9f commit 270cd9e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

config.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,14 +1309,11 @@ static struct config_set_element *configset_find_element(struct config_set *cs,
13091309
struct config_set_element k;
13101310
struct config_set_element *found_entry;
13111311
char *normalized_key;
1312-
int ret;
13131312
/*
13141313
* `key` may come from the user, so normalize it before using it
13151314
* for querying entries from the hashmap.
13161315
*/
1317-
ret = git_config_parse_key(key, &normalized_key, NULL);
1318-
1319-
if (ret)
1316+
if (git_config_parse_key(key, &normalized_key, NULL))
13201317
return NULL;
13211318

13221319
hashmap_entry_init(&k, strhash(normalized_key));

0 commit comments

Comments
 (0)