Fix missing-return bug (#2109)

tokarchuk/v1.17
Ethan Koenig 7 years ago committed by Lunny Xiao
parent 310866525b
commit 2fd039864b
  1. 1
      modules/context/repo.go

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

Loading…
Cancel
Save