Skip to content

Commit

Permalink
fixing linter URL sorry forget to lint
Browse files Browse the repository at this point in the history
  • Loading branch information
prima101112 committed Mar 19, 2024
1 parent 927eae8 commit 2fd7ec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/util/command_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ func getUID(userStr string) (uint32, error) {
}

// ExtractFilename extracts the filename from a URL without its query url
func extractFilename(rawUrl string) string {
func extractFilename(rawURL string) string {
// not necessarily return an error, due to parsing ambiguities https://pkg.go.dev/net/url#Parse
parsedUrl, _ := url.Parse(rawUrl)
filename := filepath.Base(parsedUrl.Path)
parsedURL, _ := url.Parse(rawURL)
filename := filepath.Base(parsedURL.Path)
return filename
}

0 comments on commit 2fd7ec0

Please sign in to comment.