Skip to content

Commit 93a54e9

Browse files
committed
fix formatting issue
1 parent 516fa5f commit 93a54e9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/io/CameraViewRenderer.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,7 @@ export class CameraViewRenderer implements ICameraViewRenderer {
295295

296296
private updateImageCache(imageData: ImageData): void {
297297
const size = imageData.data.length;
298-
if (
299-
!this.imageDataCache ||
300-
this.imageDataCache.length !== size
301-
) {
298+
if (!this.imageDataCache || this.imageDataCache.length !== size) {
302299
this.imageDataCache = new Uint8ClampedArray(new ArrayBuffer(size));
303300
this.cachedImageData = null;
304301
}
@@ -308,7 +305,7 @@ export class CameraViewRenderer implements ICameraViewRenderer {
308305
private getCachedImage(): ImageData {
309306
if (!this.imageDataCache) {
310307
const size = this.pw * this.ph * 4;
311-
this.imageDataCache = new Uint8ClampedArray(new ArrayBuffer(size));
308+
this.imageDataCache = new Uint8ClampedArray(new ArrayBuffer(size));
312309
this.cachedImageData = null;
313310
}
314311
if (

0 commit comments

Comments
 (0)