From d3ef0e366d2a1a5099d8d2343f37d5c033abf99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Mon, 8 May 2023 11:16:11 +0200 Subject: [PATCH] fix: go vet --- pkg/handler/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handler/config.go b/pkg/handler/config.go index 201ee26..c455713 100644 --- a/pkg/handler/config.go +++ b/pkg/handler/config.go @@ -98,7 +98,7 @@ func (config *Config) validate() error { if config.CorsOrigin != "" && config.CorsOrigin != "*" && config.CorsOrigin != "null" { _, err := url.ParseRequestURI(config.CorsOrigin) if err != nil { - errors.New("tusd: CorsOrigin is not a valid URL") + return errors.New("tusd: CorsOrigin is not a valid URL") } }