merged 2 if statement into 1

This commit is contained in:
patrick-werner 2019-12-06 11:12:47 +01:00
parent 89195efad3
commit 03473a585a
1 changed files with 1 additions and 2 deletions

View File

@ -595,8 +595,7 @@ public class ValidationEngine implements IValidatorResourceFetcher {
private Map<String, byte[]> scanDirectory(File f, boolean recursive) throws FileNotFoundException, IOException {
Map<String, byte[]> res = new HashMap<>();
for (File ff : f.listFiles()) {
if (ff.isDirectory()){
if (recursive)
if (ff.isDirectory() && recursive){
res.putAll(scanDirectory(ff, true));
}
else if (!isIgnoreFile(ff)) {