summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-07 16:55:07 -0500
committerJunio C Hamano <gitster@pobox.com>2013-05-08 09:15:37 -0700
commitb5f769a0d71bc3f13f916db849ef6b4768359c4e (patch)
treef020518fae22a2da7fc310f2c7910da7e60caf50 /sha1_name.c
parent1ef2d8dacc992b98444170ea9ee17de417433146 (diff)
downloadgit-b5f769a0d71bc3f13f916db849ef6b4768359c4e.tar.gz
sha1_name: remove unnecessary braces
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r--sha1_name.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sha1_name.c b/sha1_name.c
index 01e49a92dd..6530ddd6d8 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -465,12 +465,11 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
int ret;
/* try the @{-N} syntax for n-th checkout */
ret = interpret_branch_name(str, &buf);
- if (ret > 0) {
+ if (ret > 0)
/* substitute this branch name and restart */
return get_sha1_1(buf.buf, buf.len, sha1, 0);
- } else if (ret == 0) {
+ else if (ret == 0)
return -1;
- }
/* allow "@{...}" to mean the current branch reflog */
refs_found = dwim_ref("HEAD", 4, sha1, &real_ref);
} else if (reflog_len)