提交 d3df76f5 编写于 作者: R rebornix

Re #26106. Reduce null check.

上级 cab96c00
......@@ -71,9 +71,9 @@ export class ViewModelDecorations implements IDisposable {
}
let removedDecorations = e.removedDecorations;
for (let i = 0, len = removedDecorations.length; i < len; i++) {
let removedDecoration = removedDecorations[i];
if (this._decorationsCache !== null && this._decorationsCache !== undefined) {
if (this._decorationsCache !== null && this._decorationsCache !== undefined) {
for (let i = 0, len = removedDecorations.length; i < len; i++) {
let removedDecoration = removedDecorations[i];
delete this._decorationsCache[removedDecoration];
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册