Skip to content

Commit

Permalink
Fix lint issue (#202)
Browse files Browse the repository at this point in the history
`S1011: should replace loop with `dirs = append(dirs, extraDirs...)` (gosimple)`
  • Loading branch information
james0209 committed May 1, 2024
1 parent f4d3b41 commit 21d7f07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/fs_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import (
func lookupDirs(extraDirs []string) []string {
pathVar := os.Getenv("PATH")
dirs := filepath.SplitList(pathVar)
for _, ep := range extraDirs {
dirs = append(dirs, ep)
}
dirs = append(dirs, extraDirs...)
return dirs
}

Expand Down

0 comments on commit 21d7f07

Please sign in to comment.