From 2fd039864b1748ef577691057a9ab7961bcaec23 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Mon, 3 Jul 2017 21:29:57 -0400 Subject: [PATCH] Fix missing-return bug (#2109) --- modules/context/repo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/context/repo.go b/modules/context/repo.go index 545a9a3ff..e46170b76 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] }