Skip to content

Commit 62e74c8

Browse files
committed
fix: TypeScript type error in fileStream.on data handler
1 parent 539845a commit 62e74c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/cp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ export async function cpToInstance(cfg: CpConfig, opts: CpToInstanceOptions): Pr
156156
highWaterMark: 32 * 1024,
157157
});
158158

159-
fileStream.on('data', (chunk: Buffer) => {
160-
ws.send(chunk);
159+
fileStream.on('data', (chunk) => {
160+
ws.send(chunk as Buffer);
161161
});
162162

163163
fileStream.on('end', () => {

0 commit comments

Comments
 (0)