aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-10-26 12:49:03 +0200
committerTaras Madan <tarasmadan@google.com>2023-10-26 13:30:51 +0000
commita682f831782f1c76ec5293c2fb4b7bce0e0ee3bd (patch)
treed62132a8d242b4371231587b9d2be925d56e99b3 /pkg
parent72c2392eb8cf0b8eba97cdd94331a2ad5bebacdb (diff)
pkg/vcs/vcs.go: nolint goconst because it improves readability
To unblock #4285.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/vcs/vcs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go
index 26665bda3..ec17d642b 100644
--- a/pkg/vcs/vcs.go
+++ b/pkg/vcs/vcs.go
@@ -368,6 +368,7 @@ func FileLink(url, hash, file string, line int) string {
return link(url, hash, file, line, 3)
}
+// nolint: goconst
func link(url, hash, file string, line, typ int) string {
if url == "" || hash == "" {
return ""