Improve code

This commit is contained in:
Xpl0itU 2023-08-26 16:19:21 +02:00
parent 4176b1b168
commit 954d92e932
4 changed files with 14 additions and 19 deletions

View file

@ -11,7 +11,7 @@ func isThisDecryptedFile(path string) bool {
}
func doDeleteEncryptedContents(path string) error {
err := filepath.Walk(path, func(filePath string, info os.FileInfo, err error) error {
return filepath.Walk(path, func(filePath string, info os.FileInfo, err error) error {
if err != nil {
return err
}
@ -22,6 +22,4 @@ func doDeleteEncryptedContents(path string) error {
}
return nil
})
return err
}