Skip to content

Commit e6d4139

Browse files
committed
fix null checks
1 parent 6e96819 commit e6d4139

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/services/themes/electron-browser/colorThemeStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class ColorThemeStore {
155155
});
156156
}
157157

158-
public findThemeDataByParentLocation(parentLocation: URI): Promise<ColorThemeData[]> {
158+
public findThemeDataByParentLocation(parentLocation: URI | undefined): Promise<ColorThemeData[]> {
159159
if (parentLocation) {
160160
return this.getColorThemes().then(allThemes => {
161161
return allThemes.filter(t => t.location && resources.isEqualOrParent(t.location, parentLocation));

src/vs/workbench/services/themes/electron-browser/fileIconThemeStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class FileIconThemeStore {
154154
});
155155
}
156156

157-
public findThemeDataByParentLocation(parentLocation: URI): any {
157+
public findThemeDataByParentLocation(parentLocation: URI | undefined): any {
158158
if (parentLocation) {
159159
return this.getFileIconThemes().then(allThemes => {
160160
return allThemes.filter(t => t.location && resources.isEqualOrParent(t.location, parentLocation));

0 commit comments

Comments
 (0)