submodule-config: use hashmap_iter_first()
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Wed, 16 Mar 2016 07:46:31 +0000 (13:46 +0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Mar 2016 20:39:13 +0000 (13:39 -0700)
The hashmap API provides hashmap_iter_first() helper for initialion
and getting the first entry of a hashmap. Let's use it instead of
doing initialization manually and then get the first entry.

There are no functional changes, just cleanup.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found