mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 02:02:10 +02:00
tlv: simplify byte slice comparison as recommenteded by static analysis
This commit is contained in:
@@ -80,7 +80,7 @@ func testWriteVarInt(t *testing.T, test varIntTest) {
|
||||
test.Value, err)
|
||||
}
|
||||
|
||||
if bytes.Compare(w.Bytes(), test.Bytes) != 0 {
|
||||
if !bytes.Equal(w.Bytes(), test.Bytes) {
|
||||
t.Fatalf("expected bytes: %v, got %v",
|
||||
test.Bytes, w.Bytes())
|
||||
}
|
||||
|
Reference in New Issue
Block a user