Skip to content

Commit 19c6b6f

Browse files
authored
Don't use === to compare nobytes (#1052)
1 parent 3babef1 commit 19c6b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connections.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function Base.readuntil(c::Connection, f::F #=Vector{UInt8} -> Int=#,
239239
if bytesavailable(buf) == 0
240240
read_to_buffer(c, sizehint)
241241
end
242-
while (bytes = readuntil(buf, f)) === nobytes
242+
while (bytes = readuntil(buf, f)) == nobytes
243243
read_to_buffer(c, sizehint)
244244
end
245245
return bytes

0 commit comments

Comments
 (0)