Skip to content

Commit

Permalink
Tidy unnecessary cast in JS Socket
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored Nov 29, 2023
1 parent 53f458d commit be9febd
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 be9febd

Please sign in to comment.