chore: fix formatting

This commit is contained in:
2025-01-30 10:10:42 +03:00
parent 4463a32ae7
commit d201aae6e0
19 changed files with 253 additions and 147 deletions

View File

@ -55,12 +55,12 @@ func copyDirOrFile(sourcePath, destPath string) error {
return err
}
if sourceInfo.IsDir() {
switch {
case sourceInfo.IsDir():
return copyDir(sourcePath, destPath, sourceInfo)
} else if sourceInfo.Mode().IsRegular() {
case sourceInfo.Mode().IsRegular():
return copyFile(sourcePath, destPath, sourceInfo)
} else {
// ignore non-regular files
default:
return nil
}
}