Skip to content

Commit

Permalink
fix: use === in null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 15, 2021
1 parent 8df66d5 commit 3924ecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/datatip-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class DataTipManager {
this.editor = null
this.editorView = null

if (editor == null || !atom.workspace.isTextEditor(editor)) {
if (editor === null || !atom.workspace.isTextEditor(editor)) {
return
}

Expand Down Expand Up @@ -263,7 +263,7 @@ export class DataTipManager {

this.mouseMoveTimer = setTimeout(
(evt) => {
if (this.editorView == null || this.editor == null) {
if (this.editorView === null || this.editor === null) {
return
}

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

0 comments on commit 3924ecd

Please sign in to comment.