Skip to content

Commit

Permalink
Don't use === to compare nobytes (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi authored May 22, 2023
1 parent 3babef1 commit 19c6b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function Base.readuntil(c::Connection, f::F #=Vector{UInt8} -> Int=#,
if bytesavailable(buf) == 0
read_to_buffer(c, sizehint)
end
while (bytes = readuntil(buf, f)) === nobytes
while (bytes = readuntil(buf, f)) == nobytes
read_to_buffer(c, sizehint)
end
return bytes
Expand Down

0 comments on commit 19c6b6f

Please sign in to comment.