environment: normalize use of prefixcmp() by removing " != 0"
To be able to automatically convert prefixcmp() to starts_with() we need first to make sure that prefixcmp() is always used in the same way. So let's remove " != 0" after prefixcmp(). Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Couder committed
Dec 1, 2013 at 08:49 UTC
a4552ceb8a7666e50b5e6ca3ffaecf0c4fc4994c
1 file changed
+1
-1
environment.c
+1
-1
@@ -171,7 +171,7 @@ const char *get_git_namespace(void)
171
172
const char *strip_namespace(const char *namespaced_ref)
173
{
174
- if (prefixcmp(namespaced_ref, get_git_namespace()) != 0)
174
+ if (prefixcmp(namespaced_ref, get_git_namespace()))
175
return NULL;
176
return namespaced_ref + namespace_len;
177
}