Adopt optional chaining

This commit is contained in:
Daniel Imms
2019-11-05 11:09:47 -08:00
parent 267fbc7f5e
commit 843d5ff53c
4 changed files with 27 additions and 71 deletions
+1 -3
View File
@@ -60,9 +60,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
public dispose(): void {
this._container.removeChild(this._canvas);
if (this._charAtlas) {
this._charAtlas.dispose();
}
this._charAtlas?.dispose();
}
private _initCanvas(): void {