Skip to content

Commit

Permalink
Run gofumpt
Browse files Browse the repository at this point in the history
Fix lint error.
  • Loading branch information
martincostello committed Nov 27, 2023
1 parent e76bd0e commit 3d96833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/raw/shell_download_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func collectFetchPipeExecute(startLine, endLine uint, node syntax.Node, cmd, pat
for _, u := range urls {
// Look for a URL of the form: https://raw.githubusercontent.com/{owner}/{repo}/{ref}/{path}
if u.Scheme == "https" && u.Host == "raw.githubusercontent.com" {
var segments = strings.Split(u.Path, "/")
segments := strings.Split(u.Path, "/")
if len(segments) > 4 && gitCommitHashRegex.MatchString(segments[3]) {
pinned = append(pinned, u)
}
Expand Down

0 comments on commit 3d96833

Please sign in to comment.