Skip to content

Commit

Permalink
Null-check call result rather than function itself
Browse files Browse the repository at this point in the history
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 <andrew.casey@microsoft.com>
  • Loading branch information
amcasey committed Apr 1, 2020
1 parent 9481af8 commit 8891407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/monaco/src/browser/monaco-resolved-keybinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8891407

Please sign in to comment.