summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2de21fa)
raw | patch | inline | side by side (parent: 2de21fa)
author | David Rientjes <rientjes@google.com> | |
Mon, 14 Aug 2006 20:18:11 +0000 (13:18 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Aug 2006 01:38:07 +0000 (18:38 -0700) |
Removes conditional from return
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
blame.c | patch | blob | history |
index 7099b53c72dd3d4f586b6ae4ba7583738225523c..54a43d5c54b86b474444b4440604b0df7ac61116 100644 (file)
--- a/blame.c
+++ b/blame.c
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)