mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:59:31 +01:00
Fix missing-return bug (#2109)
This commit is contained in:
parent
310866525b
commit
2fd039864b
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue