Skip to content

Commit

Permalink
fix: remove excess copy
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 16, 2021
1 parent 3f683d9 commit 4fca672
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 @@ -303,8 +303,7 @@ export function minimapForEditor (textEditor) {
editorsMinimaps.set(textEditor, minimap)

const editorSubscription = textEditor.onDidDestroy(() => {
const minimaps = editorsMinimaps
if (minimaps) { minimaps.delete(textEditor) }
if (editorsMinimaps) { editorsMinimaps.delete(textEditor) }
editorSubscription.dispose()
})
}
Expand Down

0 comments on commit 4fca672

Please sign in to comment.