Merge pull request #18269 from Quasilyte/patch-1

light: fix duplicated argument in bytes.Equal call
This commit is contained in:
Péter Szilágyi 2018-12-10 13:55:11 +02:00 committed by GitHub
commit 2fdff33803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func diffTries(t1, t2 state.Trie) error {
spew.Dump(i2) spew.Dump(i2)
return fmt.Errorf("tries have different keys %x, %x", i1.Key, i2.Key) 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) return fmt.Errorf("tries differ at key %x", i1.Key)
} }
} }