1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

chore: fix staticcheck (#2631)

This commit is contained in:
guangwu
2023-07-02 19:38:52 +08:00
committed by GitHub
parent 50f04c14de
commit c0ab7815ea
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ func TestReader_ReadLine(t *testing.T) {
t.Errorf("Should be able to read the full buffer: %v", err)
}
if bytes.Compare(read, original[:len(original)-2]) != 0 {
if !bytes.Equal(read, original[:len(original)-2]) {
t.Errorf("Values must be equal: %d expected %d", len(read), len(original[:len(original)-2]))
}
}