Skip to content

Commit

Permalink
Merge pull request #3352 from typelevel/topic/no-js-socket-write-cast
Browse files Browse the repository at this point in the history
Tidy unnecessary cast in JS `Socket`
  • Loading branch information
mpilquist authored Dec 23, 2023
2 parents ad076bf + be9febd commit 871e16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/js/src/main/scala/fs2/io/net/SocketPlatform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private[net] trait SocketCompanionPlatform {
Stream.chunk(bytes).through(writes).compile.drain

override def writes: Pipe[F, Byte, Nothing] =
writeWritable(sock.asInstanceOf[Writable].pure, endAfterUse = false)
writeWritable(F.pure(sock), endAfterUse = false)
}

}

0 comments on commit 871e16a

Please sign in to comment.