merged 2 if statement into 1
This commit is contained in:
parent
89195efad3
commit
03473a585a
|
@ -595,8 +595,7 @@ public class ValidationEngine implements IValidatorResourceFetcher {
|
||||||
private Map<String, byte[]> scanDirectory(File f, boolean recursive) throws FileNotFoundException, IOException {
|
private Map<String, byte[]> scanDirectory(File f, boolean recursive) throws FileNotFoundException, IOException {
|
||||||
Map<String, byte[]> res = new HashMap<>();
|
Map<String, byte[]> res = new HashMap<>();
|
||||||
for (File ff : f.listFiles()) {
|
for (File ff : f.listFiles()) {
|
||||||
if (ff.isDirectory()){
|
if (ff.isDirectory() && recursive){
|
||||||
if (recursive)
|
|
||||||
res.putAll(scanDirectory(ff, true));
|
res.putAll(scanDirectory(ff, true));
|
||||||
}
|
}
|
||||||
else if (!isIgnoreFile(ff)) {
|
else if (!isIgnoreFile(ff)) {
|
||||||
|
|
Loading…
Reference in New Issue