Simplify some code

See gh-17893
This commit is contained in:
LiangYong
2019-08-19 11:30:05 +08:00
committed by Stephane Nicoll
parent 7712f9c0e5
commit a5746d0a03
2 changed files with 2 additions and 4 deletions

View File

@@ -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));
}
/**