Use key of instead of key in

This commit is contained in:
Matt Bierner
2018-05-23 14:15:36 -07:00
parent 07299ba779
commit e8c5cb7248

View File

@@ -59,7 +59,7 @@ export class DiagnosticsManager {
public dispose() {
this._currentDiagnostics.dispose();
for (const key in Object.keys(this._pendingUpdates)) {
for (const key of Object.keys(this._pendingUpdates)) {
clearTimeout(this._pendingUpdates[key]);
delete this._pendingUpdates[key];
}