Minor changes

This commit is contained in:
David Allen 2024-07-03 10:00:49 -06:00
parent 962cf42e79
commit c81ef3b431
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
4 changed files with 11 additions and 5 deletions

View file

@ -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)

View file

@ -76,6 +76,5 @@ func CopyIf[T comparable](s []T, condition func(t T) bool) []T {
f = append(f, e)
}
}
return f
}