trie: lint nitpicks

This commit is contained in:
Martin Holst Swende 2023-11-09 15:23:32 +01:00
parent f4e5f666c5
commit 042f093410
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
2 changed files with 1 additions and 5 deletions

View file

@ -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
} }

View file

@ -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 {