Skip to content

Commit

Permalink
fix type of _destroy method
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed Jun 24, 2024
1 parent b11f19c commit c67e850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stream/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
* @param err
* @param callback
*/
_destroy(err: Error | undefined, callback: ErrorCallback) {
_destroy(err: Error | null, callback: ErrorCallback) {
debug('_destroy')
if (this.port) {
debug('_destroy', 'releasing port')
Expand Down

0 comments on commit c67e850

Please sign in to comment.