Skip to content

Commit 90a71a6

Browse files
committed
fix strict null check
1 parent 7b681aa commit 90a71a6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/base/browser/ui/splitview/panelview.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ export abstract class Panel implements IView {
136136
this._onDidChange.fire(expanded ? this.expandedSize : undefined);
137137

138138
if (expanded) {
139-
clearTimeout(this.animationTimer);
139+
if (typeof this.animationTimer === 'number') {
140+
clearTimeout(this.animationTimer);
141+
}
140142
append(this.element, this.body);
141143
} else {
142144
this.animationTimer = window.setTimeout(() => {

0 commit comments

Comments
 (0)