Skip to content

Commit

Permalink
fi
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Dec 20, 2024
1 parent 8084626 commit 9662d03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ func IsURL() survey.Validator {
return fmt.Errorf("could not decode string")
}

_, err := url.Parse(str)
if err != nil {
if _, err := url.Parse(str); err != nil {
return fmt.Errorf("value is not a valid URL: %w", err)
}

Expand Down

0 comments on commit 9662d03

Please sign in to comment.