Skip to content

Commit

Permalink
chore: fixed gosimple linter (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed May 16, 2024
1 parent 402d7d0 commit 87669bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/uri/uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ func isWindowsDriveVolume(path string) bool {
// IsURIValid checks whether uri is a valid URI per RFC 8089
func IsURIValid(uri string) bool {
_, err := parseUri(uri)
if err != nil {
return false
}

return true
return err == nil
}

// PathFromURI extracts OS-specific path from an RFC 8089 "file" URI Scheme
Expand Down

0 comments on commit 87669bf

Please sign in to comment.