cache_tree_find(): remove early return
commit8b7e5f79723b0f2e1d3dca4e959ad2a2041e9453
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 5 Mar 2014 17:26:29 +0000 (5 18:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2014 20:34:05 +0000 (5 12:34 -0800)
tree62dc64caac6a39dd3a6ce1aff031541716bd0de2
parent03b0403b4a957bb52f5266ac071869da32a3be0a
cache_tree_find(): remove early return

There is no need for an early

    return it;

from the loop if slash points at the end of the string, because that
is exactly what will happen when the while condition fails at the
start of the next iteration.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c