summaryrefslogtreecommitdiff
path: root/internal/util/util.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 15:04:47 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 15:04:47 +0100
commit3934d75ac516a530ceb9f494f7ce0de12cb1b5de (patch)
tree23c905ad43340e3192362afaeec8b6f6731575a8 /internal/util/util.go
parentf884b3df2762a1bd3799441e06659b9caad4ee6c (diff)
Lint: Use gocritic linter and fix errors returned by it
Diffstat (limited to 'internal/util/util.go')
-rw-r--r--internal/util/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/util/util.go b/internal/util/util.go
index 3ce1992..ddd165d 100644
--- a/internal/util/util.go
+++ b/internal/util/util.go
@@ -40,7 +40,7 @@ func EnsureValidURL(s string) (string, error) {
// Make sure the URL ends with a /
if returnedURL[len(returnedURL)-1:] != "/" {
- returnedURL = returnedURL + "/"
+ returnedURL += "/"
}
return returnedURL, nil
}