Skip to content

Commit d67e254

Browse files
authored
Remove undefined encoding from _write (#2643)
Signed-off-by: Gareth Hancock <[email protected]>
1 parent ffd3fa2 commit d67e254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/stream/lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
246246
return super.write(data, encoding, callback)
247247
}
248248

249-
_write(data: Buffer, encoding: BufferEncoding | undefined, callback: (error: Error | null) => void) {
249+
_write(data: Buffer, encoding: BufferEncoding, callback: (error: Error | null) => void) {
250250
if (!this.isOpen || !this.port) {
251251
this.once('open', () => {
252252
this._write(data, encoding, callback)

0 commit comments

Comments
 (0)