Skip to content

Commit 153d3bf

Browse files
committed
replace > with ==
1 parent e854777 commit 153d3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/jvm/src/main/scala/fs2/io/net/unixsocket/UnixSocketsPlatform.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private[unixsocket] trait UnixSocketsCompanionPlatform {
179179
else {
180180
val toTransfer = remaining.min(chunkSize.toLong)
181181
F.blocking(fileChannel.transferFrom(ch, currOffset, toTransfer)).flatMap { readBytes =>
182-
if (readBytes > 0) F.unit
182+
if (readBytes == 0) F.unit
183183
else {
184184
go(currOffset + readBytes, remaining - readBytes)
185185
}

0 commit comments

Comments
 (0)