[analyzer] Fix cache size counter drift in EvictingFileByteStore._cleanUpFolder
Closes https://github.com/dart-lang/sdk/pull/63127 GitOrigin-RevId: 1fbf85ae3fb5be08a6caa872e75e74aadb777a86 Change-Id: Ieffaeaa59cd5e69d2d5aca2b9616b454dcce5c59 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/494021 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
committed by
dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
8e49049836
commit
effea771bc
@@ -139,8 +139,8 @@ class EvictingFileByteStore implements ByteStore {
|
||||
}
|
||||
try {
|
||||
file.deleteSync();
|
||||
currentSizeBytes -= fileStatMap[file]!.size;
|
||||
} catch (_) {}
|
||||
currentSizeBytes -= fileStatMap[file]!.size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user