0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 01:45:42 +01:00

Fix missing-return bug (#2109)

This commit is contained in:
Ethan Koenig 2017-07-03 21:29:57 -04:00 committed by Lunny Xiao
parent 310866525b
commit 2fd039864b

View file

@ -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]
}