diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2016-11-15 14:16:27 +0800 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2016-11-15 14:16:27 +0800 |
commit | d9ffe999723366de4bca616f06c7e5944a768044 (patch) | |
tree | f9de6de4456c04bccf072ee1084be015983e7480 /modules | |
parent | 07a0753420f1e97450bb22427abaaf78dc20d31d (diff) | |
download | gitea-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.go | 4 |
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) { |