cache_tree_find(): remove redundant check
If *slash == '/', then it is necessarily non-NUL. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
Mar 5, 2014 at 18:26 UTC
03b0403b4a957bb52f5266ac071869da32a3be0a
1 file changed
+1
-1
cache-tree.c
+1
-1
@@ -563,7 +563,7 @@ static struct cache_tree *cache_tree_find(struct cache_tree *it, const char *pat
563
if (!sub)
564
return NULL;
565
it = sub->cache_tree;
566
- while (*slash && *slash == '/')
566
+ while (*slash == '/')
567
slash++;
568
if (!*slash)
569
return it; /* prefix ended with slashes */