Skip to content

Commit 2fd0398

Browse files
ethantkoeniglunny
authored andcommitted
Fix missing-return bug (#2109)
1 parent 3108665 commit 2fd0398

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/context/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ func RepoRef() macaron.Handler {
394394
err = fmt.Errorf("No branches in non-bare repository %s",
395395
ctx.Repo.GitRepo.Path)
396396
ctx.Handle(500, "GetBranches", err)
397+
return
397398
}
398399
refName = brs[0]
399400
}

0 commit comments

Comments
 (0)