light: fix duplicated argument in bytes.Equal call

Most probably a copy/paste kind of error.
Found with gocritic `dupArg` checker.
pull/18269/head
Iskander (Alex) Sharipov 6 years ago committed by GitHub
parent af8daf91a6
commit da6e6e7971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      light/trie_test.go

@ -64,7 +64,7 @@ func diffTries(t1, t2 state.Trie) error {
spew.Dump(i2)
return fmt.Errorf("tries have different keys %x, %x", i1.Key, i2.Key)
}
if !bytes.Equal(i2.Value, i2.Value) {
if !bytes.Equal(i1.Value, i2.Value) {
return fmt.Errorf("tries differ at key %x", i1.Key)
}
}

Loading…
Cancel
Save