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>
David Rientjes committed
Aug 14, 2006 at 13:18 UTC
b4e275992f7ea56b7944abb2b9339c7f6f5c9423
1 file changed
+1
-4
blame.c
+1
-4
@@ -351,10 +351,7 @@ static int fill_util_info(struct commit *commit)
351
assert(util);
352
assert(util->pathname);
353
354
- if (get_blob_sha1(commit->tree, util->pathname, util->sha1))
355
- return 1;
356
- else
357
- return 0;
354
+ return !!get_blob_sha1(commit->tree, util->pathname, util->sha1);
355
}
356
357
static void alloc_line_map(struct commit *commit)