Skip to content

Commit 9b32562

Browse files
style: enable nilerr linter (#1182)
Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com> Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
1 parent 651f189 commit 9b32562

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.avalanche-golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ linters:
6767
- ineffassign
6868
- misspell
6969
- nakedret
70-
# - nilerr
70+
- nilerr
7171
- noctx
7272
- nolintlint
7373
- perfsprint

sync/statesync/trie_sync_tasks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (s *storageTrieTask) OnStart() (bool, error) {
117117
}
118118
storageTrie, err := trie.New(trie.StorageTrieID(s.sync.root, s.root, firstAccount), s.sync.trieDB)
119119
if err != nil {
120-
return false, nil
120+
return false, nil //nolint:nilerr // the storage trie does not exist, so it should be rerequested
121121
}
122122

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

0 commit comments

Comments
 (0)