mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: lint nitpicks
This commit is contained in:
parent
f4e5f666c5
commit
042f093410
2 changed files with 1 additions and 5 deletions
|
|
@ -152,5 +152,4 @@ func fuzz(data []byte, debugging bool) {
|
||||||
if checked != len(nodeset) {
|
if checked != len(nodeset) {
|
||||||
panic("node number is not matched")
|
panic("node number is not matched")
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -477,10 +477,7 @@ func verifyAccessList(old *Trie, new *Trie, set *trienode.NodeSet) error {
|
||||||
|
|
||||||
// runRandTestBool coerces error to boolean, for use in quick.Check
|
// runRandTestBool coerces error to boolean, for use in quick.Check
|
||||||
func runRandTestBool(rt randTest) bool {
|
func runRandTestBool(rt randTest) bool {
|
||||||
if runRandTest(rt) != nil {
|
return runRandTest(rt) == nil
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func runRandTest(rt randTest) error {
|
func runRandTest(rt randTest) error {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue