diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 15:04:47 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 15:04:47 +0100 |
| commit | 3934d75ac516a530ceb9f494f7ce0de12cb1b5de (patch) | |
| tree | 23c905ad43340e3192362afaeec8b6f6731575a8 /internal/util | |
| parent | f884b3df2762a1bd3799441e06659b9caad4ee6c (diff) | |
Lint: Use gocritic linter and fix errors returned by it
Diffstat (limited to 'internal/util')
| -rw-r--r-- | internal/util/util.go | 2 |
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 } |
