diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-04-29 14:15:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-29 14:15:58 -0700 |
commit | a4708391d3bf4111ae5598f8e8e9ecdc25ead10a (patch) | |
tree | 33f43ce950273883d89116d397b703193f025ac7 /submodule-config.c | |
parent | 002dd773b0b2ff2e28a335fb879a321056c0f6e2 (diff) | |
parent | 01d98e8a5dc0c1951450bed88e12d0af1a01cb20 (diff) | |
download | git-a4708391d3bf4111ae5598f8e8e9ecdc25ead10a.tar.gz |
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()
Diffstat (limited to 'submodule-config.c')
-rw-r--r-- | submodule-config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/submodule-config.c b/submodule-config.c index 92502b594d..8476e0fa0f 100644 --- a/submodule-config.c +++ b/submodule-config.c @@ -392,8 +392,7 @@ static const struct submodule *config_from(struct submodule_cache *cache, struct hashmap_iter iter; struct submodule_entry *entry; - hashmap_iter_init(&cache->for_name, &iter); - entry = hashmap_iter_next(&iter); + entry = hashmap_iter_first(&cache->for_name, &iter); if (!entry) return NULL; return entry->config; |