aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/submodule.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-10-24 04:54:59 +0200
committerGitHub <noreply@github.com>2023-10-24 02:54:59 +0000
commitce83609ff636f4c09d91ac53bee75a350bb571d6 (patch)
tree3ddbab3c0de4fe4249352eb52dbe35dc966e3f9e /modules/git/submodule.go
parentdef907de7b3cda899846d55f99b0da2640a5274b (diff)
downloadgitea-ce83609ff636f4c09d91ac53bee75a350bb571d6.tar.gz
gitea-ce83609ff636f4c09d91ac53bee75a350bb571d6.zip
Upgrade to golangci-lint@v1.55.0 (#27756)
https://github.com/golangci/golangci-lint/releases/tag/v1.55.0
Diffstat (limited to 'modules/git/submodule.go')
-rw-r--r--modules/git/submodule.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/git/submodule.go b/modules/git/submodule.go
index 3afaa334db..37813ea4c7 100644
--- a/modules/git/submodule.go
+++ b/modules/git/submodule.go
@@ -101,9 +101,8 @@ func getRefURL(refURL, urlPrefix, repoFullName, sshDomain string) string {
return ref.Scheme + "://" + ref.Host + ref.Path
} else if urlPrefixHostname == refHostname || refHostname == sshDomain {
return urlPrefix + path.Clean(path.Join("/", ref.Path))
- } else {
- return "http://" + refHostname + ref.Path
}
+ return "http://" + refHostname + ref.Path
}
}