Skip to content

Commit df7545e

Browse files
committed
panelview: strict null check
1 parent 02019f1 commit df7545e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export abstract class Panel implements IView {
5353
private _maximumBodySize: number;
5454
private ariaHeaderLabel: string;
5555
private styles: IPanelStyles = {};
56-
private animationTimer: number | null = null;
56+
private animationTimer: number | undefined = undefined;
5757

5858
private _onDidChange = new Emitter<number | undefined>();
5959
readonly onDidChange: Event<number | undefined> = this._onDidChange.event;
@@ -379,7 +379,7 @@ export class PanelView extends Disposable {
379379
private panelItems: IPanelItem[] = [];
380380
private width: number;
381381
private splitview: SplitView;
382-
private animationTimer: number | null = null;
382+
private animationTimer: number | undefined = undefined;
383383

384384
private _onDidDrop = this._register(new Emitter<{ from: Panel, to: Panel }>());
385385
readonly onDidDrop: Event<{ from: Panel, to: Panel }> = this._onDidDrop.event;
@@ -481,7 +481,7 @@ export class PanelView extends Disposable {
481481
addClass(this.el, 'animated');
482482

483483
this.animationTimer = window.setTimeout(() => {
484-
this.animationTimer = null;
484+
this.animationTimer = undefined;
485485
removeClass(this.el, 'animated');
486486
}, 200);
487487
}

0 commit comments

Comments
 (0)