diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-01 14:55:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 14:55:03 +0800 |
commit | f04b2d43509816ecfda93aa5d0d1fd685d9b860f (patch) | |
tree | 548c7b0b4ff2f187569e74cf99c19742a44f18aa /internal/context | |
parent | 9c65798902386341a205d52b6b3842e1dc2c751a (diff) |
lint: fix some Golang CI lint issues (#5955)
Diffstat (limited to 'internal/context')
-rw-r--r-- | internal/context/repo.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/context/repo.go b/internal/context/repo.go index 7d030458..31729f9e 100644 --- a/internal/context/repo.go +++ b/internal/context/repo.go @@ -15,9 +15,9 @@ import ( "github.com/gogs/git-module" + "gogs.io/gogs/internal/conf" "gogs.io/gogs/internal/db" "gogs.io/gogs/internal/db/errors" - "gogs.io/gogs/internal/conf" ) type PullRequest struct { @@ -142,10 +142,6 @@ func RepoAssignment(pages ...bool) macaron.Handler { ownerName := c.Params(":username") repoName := strings.TrimSuffix(c.Params(":reponame"), ".git") - refName := c.Params(":branchname") - if len(refName) == 0 { - refName = c.Params(":path") - } // Check if the user is the same as the repository owner if c.IsLogged && c.User.LowerName == strings.ToLower(ownerName) { |