Fix ESLint for few files

This commit is contained in:
vaidankarswapnil
2021-10-05 15:57:36 +05:30
parent 315a67e4dd
commit 22f6670184
5 changed files with 12 additions and 17 deletions

View File

@@ -35,8 +35,11 @@ export class Splitter {
this.initialize();
}
public initialize() {
if (document.getElementById(this.splitterId) !== null && document.getElementById(this.leftSideId) != null) {
public initialize(): void {
if (
document.getElementById(this.splitterId) !== undefined &&
document.getElementById(this.leftSideId) !== undefined
) {
this.splitter = <HTMLElement>document.getElementById(this.splitterId);
this.leftSide = <HTMLElement>document.getElementById(this.leftSideId);
}