aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorIskander (Alex) Sharipov <quasilyte@gmail.com>2018-12-10 19:29:34 +0800
committerGitHub <noreply@github.com>2018-12-10 19:29:34 +0800
commitda6e6e7971b093990b964cd708cceab77898a655 (patch)
tree7326eaeb096268fd5fa995d70b7a8bb8eca5fd77 /light
parentaf8daf91a659c05a9c6424752d050f2beca0ee29 (diff)
downloaddexon-da6e6e7971b093990b964cd708cceab77898a655.tar.gz
dexon-da6e6e7971b093990b964cd708cceab77898a655.tar.zst
dexon-da6e6e7971b093990b964cd708cceab77898a655.zip
light: fix duplicated argument in bytes.Equal call
Most probably a copy/paste kind of error. Found with gocritic `dupArg` checker.
Diffstat (limited to 'light')
-rw-r--r--light/trie_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/light/trie_test.go b/light/trie_test.go
index 51ce9017a..5b5fce31d 100644
--- a/light/trie_test.go
+++ b/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)
}
}