Skip to content

Commit 73385f2

Browse files
committed
Merge branch 'ak/use-hashmap-iter-first-in-submodule-config'
Minor code cleanup. * ak/use-hashmap-iter-first-in-submodule-config: submodule-config: use hashmap_iter_first()
2 parents 907c416 + 01d98e8 commit 73385f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

submodule-config.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ static const struct submodule *config_from(struct submodule_cache *cache,
405405
struct hashmap_iter iter;
406406
struct submodule_entry *entry;
407407

408-
hashmap_iter_init(&cache->for_name, &iter);
409-
entry = hashmap_iter_next(&iter);
408+
entry = hashmap_iter_first(&cache->for_name, &iter);
410409
if (!entry)
411410
return NULL;
412411
return entry->config;

0 commit comments

Comments
 (0)