Skip to content

Commit

Permalink
Remove needless check for array in ContextKeyChangeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha committed Feb 4, 2018
1 parent a31d226 commit a75736e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/vs/platform/contextkey/browser/contextKeyService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,7 @@ export class ContextKeyChangeEvent implements IContextKeyChangeEvent {
private _keys: string[] = [];

collect(oneOrManyKeys: string | string[]): void {
if (Array.isArray(oneOrManyKeys)) {
this._keys = this._keys.concat(oneOrManyKeys);
} else {
this._keys.push(oneOrManyKeys);
}
this._keys = this._keys.concat(oneOrManyKeys);
}

affectsSome(keys: Set<string>): boolean {
Expand Down

0 comments on commit a75736e

Please sign in to comment.