mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
Gballet's three empty 'suggestion' blocks (comments 3101685618, 3101734697, 3101736436) mark the unexported wrapper declarations on getValuesAtStem and insertValuesAtStem plus one temporary-var line. Apply: - Inline the unexported getValuesAtStem body into GetValuesAtStem (start the walk at s.root directly instead of via a two-arg helper). The function is not self-recursive, so the wrapper was pure indirection. - Tighten InsertValuesAtStem to two lines using the 's.root, err = ...' idiom — the recursive helper stays (it IS self-recursive), only the public entry point gets the cleanup. Adds docstrings on both public entry points. |
||
|---|---|---|
| .. | ||
| binary_node.go | ||
| binary_node_test.go | ||
| hashed_node.go | ||
| hashed_node_test.go | ||
| hasher.go | ||
| internal_node.go | ||
| internal_node_test.go | ||
| iterator.go | ||
| iterator_test.go | ||
| key_encoding.go | ||
| node_ref.go | ||
| node_store.go | ||
| stem_node.go | ||
| stem_node_test.go | ||
| store_commit.go | ||
| store_ops.go | ||
| trie.go | ||
| trie_test.go | ||