Skip to content

Commit 9730921

Browse files
committed
Remove if condition
1 parent f64e5e7 commit 9730921

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

internal/files/copy.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ func CopyWithSkipped(sourcePath, destinationPath string, skippedDirs, skippedFil
5555
return nil // don't create empty directories inside packages, if the directory is empty, skip it.
5656
}
5757

58-
if len(regexesFiles) > 0 {
59-
for _, r := range regexesFiles {
60-
if r.MatchString(filepath.Base(relativePath)) {
61-
return nil
62-
}
58+
for _, r := range regexesFiles {
59+
if r.MatchString(filepath.Base(relativePath)) {
60+
return nil
6361
}
6462
}
6563

0 commit comments

Comments
 (0)