Skip to content

Commit

Permalink
light: fix duplicated argument in bytes.Equal call
Browse files Browse the repository at this point in the history
Most probably a copy/paste kind of error.
Found with gocritic `dupArg` checker.
  • Loading branch information
quasilyte authored Dec 10, 2018
1 parent af8daf9 commit da6e6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion light/trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit da6e6e7

Please sign in to comment.