Commit ae5ee182 by Emilio Cobos Álvarez Committed by Nika Layzell

mailmap: git_vector_get already checks bounds

parent ae222136
......@@ -267,10 +267,7 @@ git_mailmap_entry *git_mailmap_entry_lookup(
git_mailmap_entry *git_mailmap_entry_byindex(git_mailmap *mailmap, size_t idx)
{
if (idx < git_vector_length(&mailmap->entries))
return git_vector_get(&mailmap->entries, idx);
return NULL;
return git_vector_get(&mailmap->entries, idx);
}
size_t git_mailmap_entry_count(git_mailmap *mailmap)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment