aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-14 13:18:11 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-14 18:38:07 -0700
commitb4e275992f7ea56b7944abb2b9339c7f6f5c9423 (patch)
treed83f2e3f72919af6c05bfd92f70f225321532795
parent2de21fac9842650fceb3db68f15711e38fabc3c8 (diff)
downloadgit-b4e275992f7ea56b7944abb2b9339c7f6f5c9423.tar.gz
git-b4e275992f7ea56b7944abb2b9339c7f6f5c9423.tar.xz
blame.c return cleanup
Removes conditional from return Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--blame.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/blame.c b/blame.c
index 7099b53c7..54a43d5c5 100644
--- a/blame.c
+++ b/blame.c
@@ -351,10 +351,7 @@ static int fill_util_info(struct commit *commit)
assert(util);
assert(util->pathname);
- if (get_blob_sha1(commit->tree, util->pathname, util->sha1))
- return 1;
- else
- return 0;
+ return !!get_blob_sha1(commit->tree, util->pathname, util->sha1);
}
static void alloc_line_map(struct commit *commit)