Skip to content

Commit 8f95b4c

Browse files
author
Steven
committed
fix: comment instead of empty arrow function
1 parent f563dc2 commit 8f95b4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/components/canvas/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export class CanvasSink extends Sink {
119119
// it receives a blob of a JPEG image.
120120
let drawImageBlob: BlobMessageHandler
121121
if (ctx === null) {
122-
drawImageBlob = () => {}
122+
drawImageBlob = () => {
123+
/** NOOP */
124+
}
123125
} else if ('transferFromImageBitmap' in ctx) {
124126
const ctxBitmaprenderer = ctx
125127
drawImageBlob = ({ blob }) => {

0 commit comments

Comments
 (0)