]> git.ipfire.org Git - thirdparty/git.git/commit
path-walk: drop redundant parse_tree() call
authorJeff King <peff@peff.net>
Thu, 23 Jan 2025 00:36:13 +0000 (19:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Jan 2025 01:52:44 +0000 (17:52 -0800)
commitb224e8e36cf22df3c058990cfdd8c1d5c51fc5ae
tree4456c741ddeb550f53f92aed3fe14d4c6802316a
parent71edf6c3c8161a2f102b69ca318ca1784ba29a58
path-walk: drop redundant parse_tree() call

This call to parse_tree() was flagged by Coverity for ignoring the
return value. But if we look a little further up the function, we can
see that there is already a call to parse_tree_gently(), and we'll
return early if that fails. So by this point the tree will always be
parsed, and the call is redundant.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path-walk.c