提交 1b61a700 编写于 作者: B Benjamin Pasero

strict müll

上级 add41d5b
...@@ -34,7 +34,7 @@ export class KeybindingLabel { ...@@ -34,7 +34,7 @@ export class KeybindingLabel {
private domNode: HTMLElement; private domNode: HTMLElement;
private keybinding: ResolvedKeybinding; private keybinding: ResolvedKeybinding;
private matches: Matches; private matches: Matches | undefined;
private didEverRender: boolean; private didEverRender: boolean;
constructor(container: HTMLElement, private os: OperatingSystem, private options?: KeybindingLabelOptions) { constructor(container: HTMLElement, private os: OperatingSystem, private options?: KeybindingLabelOptions) {
...@@ -108,7 +108,7 @@ export class KeybindingLabel { ...@@ -108,7 +108,7 @@ export class KeybindingLabel {
dom.append(parent, $('span.monaco-keybinding-key', undefined, localize('unbound', "Unbound"))); dom.append(parent, $('span.monaco-keybinding-key', undefined, localize('unbound', "Unbound")));
} }
private static areSame(a: Matches, b: Matches): boolean { private static areSame(a: Matches | undefined, b: Matches | undefined): boolean {
if (a === b || (!a && !b)) { if (a === b || (!a && !b)) {
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册