Skip to content

Commit

Permalink
Merge pull request #3178 from armanbilge/fix/macos-unixsocket-npe
Browse files Browse the repository at this point in the history
Fix NPE for socket writes on Node.js 19
  • Loading branch information
mpilquist authored Mar 23, 2023
2 parents f30adf4 + db70e04 commit 599de2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/js/src/main/scala/fs2/io/ioplatform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private[fs2] trait ioplatform {
F.delay {
writable.write(
head.toUint8Array,
e => cb(e.toLeft(()).leftMap(js.JavaScriptException))
e => cb(e.filterNot(_ == null).toLeft(()).leftMap(js.JavaScriptException))
)
Some(F.delay(writable.destroy()))
}
Expand Down

0 comments on commit 599de2a

Please sign in to comment.