Skip to content

Commit a470839

Browse files
committed
Merge branch 'ak/use-hashmap-iter-first-in-submodule-config' into maint
Minor code cleanup. * ak/use-hashmap-iter-first-in-submodule-config: submodule-config: use hashmap_iter_first()
2 parents 002dd77 + 01d98e8 commit a470839

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
@@ -392,8 +392,7 @@ static const struct submodule *config_from(struct submodule_cache *cache,
392392
struct hashmap_iter iter;
393393
struct submodule_entry *entry;
394394

395-
hashmap_iter_init(&cache->for_name, &iter);
396-
entry = hashmap_iter_next(&iter);
395+
entry = hashmap_iter_first(&cache->for_name, &iter);
397396
if (!entry)
398397
return NULL;
399398
return entry->config;

0 commit comments

Comments
 (0)