mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
tiny refactor
This commit is contained in:
@ -134,10 +134,6 @@ func gelAllFilesNameByDirName(dirName string) ([]string, error) {
|
|||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
if !file.IsDir() && strings.Contains(file.Name(), extension) {
|
if !file.IsDir() && strings.Contains(file.Name(), extension) {
|
||||||
filesName = append(filesName, file.Name())
|
filesName = append(filesName, file.Name())
|
||||||
} else {
|
|
||||||
log.WithFields(log.Fields{
|
|
||||||
"name": file.Name(),
|
|
||||||
}).Warning("Ignore file")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return filesName, nil
|
return filesName, nil
|
||||||
|
Reference in New Issue
Block a user