From d9ffe999723366de4bca616f06c7e5944a768044 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 15 Nov 2016 14:16:27 +0800 Subject: fix variable assigned and not used. Signed-off-by: Bo-Yi Wu --- modules/context/repo.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'modules') diff --git a/modules/context/repo.go b/modules/context/repo.go index db808d743e..e3683a1498 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -146,10 +146,6 @@ func RepoAssignment(args ...bool) macaron.Handler { userName := ctx.Params(":username") repoName := ctx.Params(":reponame") - refName := ctx.Params(":branchname") - if len(refName) == 0 { - refName = ctx.Params(":path") - } // Check if the user is the same as the repository owner if ctx.IsSigned && ctx.User.LowerName == strings.ToLower(userName) { -- cgit v1.2.3