Skip to content

Commit

Permalink
fix: compare minimap with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 17, 2021
1 parent 1043a29 commit ad83bf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ export function minimapForEditor (textEditor) {
if (!editorsMinimaps) { return }

let minimap = editorsMinimaps.get(textEditor)

if (!minimap) {
if (minimap === undefined) {
minimap = new Minimap({ textEditor })
editorsMinimaps.set(textEditor, minimap)

Expand Down

0 comments on commit ad83bf6

Please sign in to comment.