Skip to content

Commit

Permalink
chore: Fix remove question
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Oct 30, 2024
1 parent 209936d commit f693a29
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions package/src/skia/useSkiaFrameProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ export function createSkiaFrameProcessor(
const size = getSurfaceSize(frame)
if (
surfaceHolder.value[threadId] == null ||
surfaceHolder.value[threadId]?.width !== size.width ||
surfaceHolder.value[threadId]?.height !== size.height
surfaceHolder.value[threadId].width !== size.width ||
surfaceHolder.value[threadId].height !== size.height
) {
const surface = Skia.Surface.MakeOffscreen(size.width, size.height)
if (surface == null) {
Expand All @@ -212,8 +212,7 @@ export function createSkiaFrameProcessor(
delete surfaceHolder.value[threadId]
surfaceHolder.value[threadId] = { surface: surface, width: size.width, height: size.height }
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const surface = surfaceHolder.value[threadId]!.surface
const surface = surfaceHolder.value[threadId].surface
return surface
}

Expand Down

0 comments on commit f693a29

Please sign in to comment.