summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2016-11-15 14:16:27 +0800
committerBo-Yi Wu <appleboy.tw@gmail.com>2016-11-15 14:16:27 +0800
commitd9ffe999723366de4bca616f06c7e5944a768044 (patch)
treef9de6de4456c04bccf072ee1084be015983e7480 /modules
parent07a0753420f1e97450bb22427abaaf78dc20d31d (diff)
downloadgitea-d9ffe999723366de4bca616f06c7e5944a768044.tar.gz
gitea-d9ffe999723366de4bca616f06c7e5944a768044.zip
fix variable assigned and not used.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/context/repo.go4
1 files changed, 0 insertions, 4 deletions
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) {