Skip to content

Commit

Permalink
Fix missing-return bug (#2109)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig authored and lunny committed Jul 4, 2017
1 parent 3108665 commit 2fd0398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/context/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ func RepoRef() macaron.Handler {
err = fmt.Errorf("No branches in non-bare repository %s",
ctx.Repo.GitRepo.Path)
ctx.Handle(500, "GetBranches", err)
return
}
refName = brs[0]
}
Expand Down

0 comments on commit 2fd0398

Please sign in to comment.