fix: go vet

This commit is contained in:
Thomas Müller 2023-05-08 11:16:11 +02:00
parent 22b9a19975
commit d3ef0e366d
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}
}