diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-07-03 21:29:57 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-07-04 09:29:57 +0800 |
commit | 2fd039864b1748ef577691057a9ab7961bcaec23 (patch) | |
tree | f048079c38a0a31e3edf4db1db1111f5bfdee543 /modules | |
parent | 310866525b56050e85f71f4e278d069c880f45a8 (diff) | |
download | gitea-2fd039864b1748ef577691057a9ab7961bcaec23.tar.gz gitea-2fd039864b1748ef577691057a9ab7961bcaec23.zip |
Fix missing-return bug (#2109)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/context/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index 545a9a3ff2..e46170b76d 100644 --- a/modules/context/repo.go +++ b/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] } |