From 39f8152e0923c3158a4675d807852686126d49ee Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 25 Feb 2024 11:43:44 -0500 Subject: [PATCH] refactor: use just Read --- bao/bao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bao/bao.go b/bao/bao.go index 21b9b40..406d30b 100644 --- a/bao/bao.go +++ b/bao/bao.go @@ -35,7 +35,7 @@ type Verifier struct { func (v Verifier) Read(p []byte) (n int, err error) { var buf [VERIFY_CHUNK_SIZE]byte - n, err = io.ReadAtLeast(v.r, buf[:], VERIFY_CHUNK_SIZE) + n, err = v.r.Read(buf[:]) if err != nil { return 0, err }