From 8891407e47585f5d07962b317ce603e53cfe2902 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Tue, 31 Mar 2020 13:56:06 -0700 Subject: [PATCH] Null-check call result rather than function itself From the comment, it seems like this was supposed check for chords, rather than checking for the availability of `isChord`. Signed-off-by: Andrew Casey --- packages/monaco/src/browser/monaco-resolved-keybinding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/monaco/src/browser/monaco-resolved-keybinding.ts b/packages/monaco/src/browser/monaco-resolved-keybinding.ts index e7eb37f656816..a5124cf748cef 100644 --- a/packages/monaco/src/browser/monaco-resolved-keybinding.ts +++ b/packages/monaco/src/browser/monaco-resolved-keybinding.ts @@ -49,7 +49,7 @@ export class MonacoResolvedKeybinding extends monaco.keybindings.ResolvedKeybind } public getElectronAccelerator(): string | null { - if (this.isChord) { + if (this.isChord()) { // Electron cannot handle chords // eslint-disable-next-line no-null/no-null return null;