Strict null check partsSplash

This commit is contained in:
Matt Bierner 2019-01-04 10:17:31 -08:00
parent 47b0d070bb
commit 6710ec0bf6
2 changed files with 3 additions and 2 deletions

View file

@ -641,6 +641,7 @@
"./vs/workbench/parts/snippets/test/electron-browser/snippetsRegistry.test.ts",
"./vs/workbench/parts/snippets/test/electron-browser/snippetsRewrite.test.ts",
"./vs/workbench/parts/snippets/test/electron-browser/snippetsService.test.ts",
"./vs/workbench/parts/splash/electron-browser/partsSplash.contribution.ts",
"./vs/workbench/parts/stats/node/stats.contribution.ts",
"./vs/workbench/parts/stats/node/workspaceStats.ts",
"./vs/workbench/parts/stats/test/workspaceStats.test.ts",

View file

@ -27,7 +27,7 @@ class PartsSplash {
private readonly _disposables: IDisposable[] = [];
private _lastBaseTheme: string;
private _lastBackground: string;
private _lastBackground?: string;
constructor(
@IThemeService private readonly _themeService: IThemeService,
@ -85,7 +85,7 @@ class PartsSplash {
}
}
private _getThemeColor(id: ColorIdentifier): string {
private _getThemeColor(id: ColorIdentifier): string | undefined {
const theme = this._themeService.getTheme();
const color = theme.getColor(id);
return color ? color.toString() : undefined;