Skip to content

Commit 3924ecd

Browse files
committed
fix: use === in null checks
1 parent 8df66d5 commit 3924ecd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/datatip-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class DataTipManager {
200200
this.editor = null
201201
this.editorView = null
202202

203-
if (editor == null || !atom.workspace.isTextEditor(editor)) {
203+
if (editor === null || !atom.workspace.isTextEditor(editor)) {
204204
return
205205
}
206206

@@ -263,7 +263,7 @@ export class DataTipManager {
263263

264264
this.mouseMoveTimer = setTimeout(
265265
(evt) => {
266-
if (this.editorView == null || this.editor == null) {
266+
if (this.editorView === null || this.editor === null) {
267267
return
268268
}
269269

@@ -345,7 +345,7 @@ export class DataTipManager {
345345
this.unmountDataTip()
346346
} else {
347347
// omit update of UI if the range is the same as the current one
348-
if (this.currentMarkerRange != null && datatip.range.intersectsWith(this.currentMarkerRange)) {
348+
if (this.currentMarkerRange !== null && datatip.range.intersectsWith(this.currentMarkerRange)) {
349349
return
350350
}
351351
// make sure we are still on the same position

0 commit comments

Comments
 (0)