Update util.go

This commit is contained in:
lupin17 2025-12-19 20:59:33 +01:00 committed by GitHub
parent 2e5cd21edf
commit d6768c4fd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,13 +53,8 @@ func memoryCopy(m []byte, offset, size int64) (cpy []byte) {
return nil
}
if len(m) > int(offset) {
cpy = make([]byte, size)
copy(cpy, m[offset:offset+size])
return
}
return
}