Skip to content

Commit

Permalink
reverting the optimization as it actually makes non-sense
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximaz committed Apr 28, 2024
1 parent 2e27221 commit 7b4323d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hashmap_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ const hashmap_entry_t *hashmap_entry_get(const hashmap_t *hashmap,
hash_t hash = hashmap_hash(key);
const hashmap_entry_t *head = hashmap->buckets[hash].head;

if (NULL != head && NULL == head->next)
return head;
while (NULL != head) {
if (0 == strcmp(key, head->key))
return head;
Expand Down

0 comments on commit 7b4323d

Please sign in to comment.