Minor changes
This commit is contained in:
parent
962cf42e79
commit
c81ef3b431
4 changed files with 11 additions and 5 deletions
|
|
@ -169,7 +169,7 @@ func LoadFiles(paths ...string) (Files, error) {
|
|||
for _, path := range paths {
|
||||
expandedPaths, err := filepath.Glob(path)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to expand path: %v", err)
|
||||
return nil, fmt.Errorf("failed to glob path: %v", err)
|
||||
}
|
||||
for _, expandedPath := range expandedPaths {
|
||||
info, err := os.Stat(expandedPath)
|
||||
|
|
|
|||
|
|
@ -76,6 +76,5 @@ func CopyIf[T comparable](s []T, condition func(t T) bool) []T {
|
|||
f = append(f, e)
|
||||
}
|
||||
}
|
||||
|
||||
return f
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue