Skip to content

Commit 33906a5

Browse files
committed
Fixed linter warning
1 parent e612dec commit 33906a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

list.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ func (p *PathList) Add(path *Path) {
140140

141141
// AddAll adds all Paths in the list passed as argument
142142
func (p *PathList) AddAll(paths PathList) {
143-
for _, path := range paths {
144-
*p = append(*p, path)
145-
}
143+
*p = append(*p, paths...)
146144
}
147145

148146
// AddIfMissing adds a Path to the PathList if the path is not already

0 commit comments

Comments
 (0)