aboutsummaryrefslogtreecommitdiffstats
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
parentaf8daf91a659c05a9c6424752d050f2beca0ee29 (diff)
downloadgo-tangerine-da6e6e7971b093990b964cd708cceab77898a655.tar
go-tangerine-da6e6e7971b093990b964cd708cceab77898a655.tar.gz
go-tangerine-da6e6e7971b093990b964cd708cceab77898a655.tar.bz2
go-tangerine-da6e6e7971b093990b964cd708cceab77898a655.tar.lz
go-tangerine-da6e6e7971b093990b964cd708cceab77898a655.tar.xz
go-tangerine-da6e6e7971b093990b964cd708cceab77898a655.tar.zst
go-tangerine-da6e6e7971b093990b964cd708cceab77898a655.zip
light: fix duplicated argument in bytes.Equal call
Most probably a copy/paste kind of error. Found with gocritic `dupArg` checker.
-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)
}
}