Skip to content

Commit b5f769a

Browse files
felipecgitster
authored andcommitted
sha1_name: remove unnecessary braces
Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1ef2d8d commit b5f769a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sha1_name.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,11 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
465465
int ret;
466466
/* try the @{-N} syntax for n-th checkout */
467467
ret = interpret_branch_name(str, &buf);
468-
if (ret > 0) {
468+
if (ret > 0)
469469
/* substitute this branch name and restart */
470470
return get_sha1_1(buf.buf, buf.len, sha1, 0);
471-
} else if (ret == 0) {
471+
else if (ret == 0)
472472
return -1;
473-
}
474473
/* allow "@{...}" to mean the current branch reflog */
475474
refs_found = dwim_ref("HEAD", 4, sha1, &real_ref);
476475
} else if (reflog_len)

0 commit comments

Comments
 (0)