From 19c6b6f6d2ae37612a65870003ef2af3cbe8f4d2 Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Tue, 23 May 2023 10:14:32 +1200 Subject: [PATCH] Don't use `===` to compare `nobytes` (#1052) --- src/Connections.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connections.jl b/src/Connections.jl index 7829c50bd..b6d0f6c60 100644 --- a/src/Connections.jl +++ b/src/Connections.jl @@ -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