mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Use ??= in more places (#163594)
This commit is contained in:
@@ -866,9 +866,7 @@ export class Color {
|
||||
|
||||
private _toString?: string;
|
||||
toString(): string {
|
||||
if (!this._toString) {
|
||||
this._toString = Color.Format.CSS.format(this);
|
||||
}
|
||||
this._toString ??= Color.Format.CSS.format(this);
|
||||
return this._toString;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user