Skip to content

Commit 30dc021

Browse files
committed
null -> undefined
1 parent 40e0f49 commit 30dc021

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class Settings {
6161
const minimapOpts = options.get(EditorOption.minimap);
6262
const minimapEnabled = minimapOpts.enabled;
6363
const minimapSide = minimapOpts.side;
64-
const backgroundColor = (minimapEnabled ? TokenizationRegistry.getDefaultBackground() : null);
65-
if (backgroundColor === null || minimapSide === 'left') {
64+
const backgroundColor = (minimapEnabled ? TokenizationRegistry.getDefaultBackground() : undefined);
65+
if (typeof backgroundColor === 'undefined' || minimapSide === 'left') {
6666
this.backgroundColor = null;
6767
} else {
6868
this.backgroundColor = Color.Format.CSS.formatHex(backgroundColor);

0 commit comments

Comments
 (0)