Skip to content

Commit cb1f945

Browse files
committed
title: no need for null check
microsoft#57130
1 parent 3a86741 commit cb1f945

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/browser/parts/titlebar/titlebarPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class TitlebarPart extends Part implements ITitleService {
243243
const activeEditorShort = editor ? editor.getTitle(Verbosity.SHORT) : '';
244244
const activeEditorMedium = editor ? editor.getTitle(Verbosity.MEDIUM) : activeEditorShort;
245245
const activeEditorLong = editor ? editor.getTitle(Verbosity.LONG) : activeEditorMedium;
246-
const rootName = root ? this.labelService.getWorkspaceLabel(workspace) : '';
246+
const rootName = this.labelService.getWorkspaceLabel(workspace);
247247
const rootPath = root ? this.labelService.getUriLabel(root) : '';
248248
const folderName = folder ? folder.name : '';
249249
const folderPath = folder ? this.labelService.getUriLabel(folder.uri) : '';

0 commit comments

Comments
 (0)