summaryrefslogtreecommitdiff
path: root/src/hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashtable.c')
-rw-r--r--src/hashtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hashtable.c b/src/hashtable.c
index 73a6336c4..c081fc9a7 100644
--- a/src/hashtable.c
+++ b/src/hashtable.c
@@ -227,11 +227,11 @@ int git_hashtable_remove2(git_hashtable *self, const void *key, void **old_value
node->key = NULL;
node->value = NULL;
self->key_count--;
- return GIT_SUCCESS;
+ return 0;
}
}
- return git__throw(GIT_ENOTFOUND, "Entry not found in hash table");
+ return GIT_ENOTFOUND;
}
int git_hashtable_merge(git_hashtable *self, git_hashtable *other)