null -> undefined

This commit is contained in:
Matt Bierner
2019-10-07 14:15:08 -07:00
parent 40e0f496f9
commit 30dc021bf7
@@ -61,8 +61,8 @@ class Settings {
const minimapOpts = options.get(EditorOption.minimap);
const minimapEnabled = minimapOpts.enabled;
const minimapSide = minimapOpts.side;
const backgroundColor = (minimapEnabled ? TokenizationRegistry.getDefaultBackground() : null);
if (backgroundColor === null || minimapSide === 'left') {
const backgroundColor = (minimapEnabled ? TokenizationRegistry.getDefaultBackground() : undefined);
if (typeof backgroundColor === 'undefined' || minimapSide === 'left') {
this.backgroundColor = null;
} else {
this.backgroundColor = Color.Format.CSS.formatHex(backgroundColor);