debt - optional chaining

This commit is contained in:
Benjamin Pasero
2019-10-21 15:44:11 +02:00
parent cfb88f21c9
commit 935b0f1c0d
85 changed files with 273 additions and 259 deletions

View File

@@ -1063,7 +1063,7 @@ export function toResource(editor: IEditorInput | undefined, options?: IResource
return undefined;
}
if (options && options.supportSideBySide && editor instanceof SideBySideEditorInput) {
if (options?.supportSideBySide && editor instanceof SideBySideEditorInput) {
editor = options.supportSideBySide === SideBySideEditor.MASTER ? editor.master : editor.details;
}