Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .avalanche-golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ linters:
- ineffassign
- misspell
- nakedret
# - nilerr
- nilerr
- noctx
- nolintlint
- perfsprint
Expand Down
3 changes: 1 addition & 2 deletions plugin/evm/customtypes/rlp_fuzzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ import (

func decodeEncode(input []byte, val interface{}) error {
if err := rlp.DecodeBytes(input, val); err != nil {
// not valid rlp, nothing to do
return nil
return nil //nolint:nilerr // not valid rlp, nothing to do
}
// If it _were_ valid rlp, we can encode it again
output, err := rlp.EncodeToBytes(val)
Expand Down
2 changes: 1 addition & 1 deletion sync/statesync/trie_sync_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (s *storageTrieTask) OnStart() (bool, error) {
}
storageTrie, err := trie.New(trie.StorageTrieID(s.sync.root, s.root, firstAccount), s.sync.trieDB)
if err != nil {
return false, nil
return false, nil //nolint:nilerr // the storage trie does not exist, so it should be rerequested
}

// If the storage trie is already on disk, we only need to populate the storage snapshot for [accountHash]
Expand Down