Simplify some code
See gh-17893
This commit is contained in:
committed by
Stephane Nicoll
parent
7712f9c0e5
commit
a5746d0a03
@@ -165,9 +165,7 @@ public class FileSystemWatcher {
|
||||
}
|
||||
|
||||
private void saveInitialSnapshots() {
|
||||
for (File folder : this.folders.keySet()) {
|
||||
this.folders.put(folder, new FolderSnapshot(folder));
|
||||
}
|
||||
this.folders.replaceAll((f, v) -> new FolderSnapshot(f));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user