Skip to content

Commit

Permalink
Merge pull request #110572 from Wscats/patch-2
Browse files Browse the repository at this point in the history
Optimize code readability
  • Loading branch information
alexdima authored Nov 16, 2020
2 parents 00525e9 + f2ea884 commit f663779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vs/platform/contextkey/common/contextkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ export class ContextKeyEqualsExpr implements IContextKeyExpression {
}

public serialize(): string {
return this.key + ' == \'' + this.value + '\'';
return `${this.key} == '${this.value}'`;
}

public keys(): string[] {
Expand Down Expand Up @@ -460,7 +460,7 @@ export class ContextKeyInExpr implements IContextKeyExpression {
}

public serialize(): string {
return this.key + ' in \'' + this.valueKey + '\'';
return `${this.key} in '${this.valueKey}'`;
}

public keys(): string[] {
Expand Down Expand Up @@ -578,7 +578,7 @@ export class ContextKeyNotEqualsExpr implements IContextKeyExpression {
}

public serialize(): string {
return this.key + ' != \'' + this.value + '\'';
return `${this.key} != '${this.value}'`;
}

public keys(): string[] {
Expand Down Expand Up @@ -634,7 +634,7 @@ export class ContextKeyNotExpr implements IContextKeyExpression {
}

public serialize(): string {
return '!' + this.key;
return `!${this.key}`;
}

public keys(): string[] {
Expand Down

0 comments on commit f663779

Please sign in to comment.