refactor: use just Read

This commit is contained in:
Derrick Hammer 2024-02-25 11:43:44 -05:00
parent 907de0b3af
commit 39f8152e09
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ type Verifier struct {
func (v Verifier) Read(p []byte) (n int, err error) { func (v Verifier) Read(p []byte) (n int, err error) {
var buf [VERIFY_CHUNK_SIZE]byte 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 { if err != nil {
return 0, err return 0, err
} }