From 3aac8b217e1df27705c509e28c88c080ed69c2b9 Mon Sep 17 00:00:00 2001 From: Jorge Silva Date: Tue, 23 Apr 2024 12:17:42 +0100 Subject: [PATCH] lint fix --- packages/testutil/run_heavy_tests_false.go | 1 + packages/trie/trie_kvstore.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/testutil/run_heavy_tests_false.go b/packages/testutil/run_heavy_tests_false.go index e5680b6c8f..7f8f874219 100644 --- a/packages/testutil/run_heavy_tests_false.go +++ b/packages/testutil/run_heavy_tests_false.go @@ -5,6 +5,7 @@ package testutil import "testing" +//nolint:gocritic // its not a test function, but gets called by other test functions func RunHeavy(t *testing.T) { t.Logf("skipping heavy test %s", t.Name()) t.SkipNow() diff --git a/packages/trie/trie_kvstore.go b/packages/trie/trie_kvstore.go index 23a7f80ff3..8add223dbc 100644 --- a/packages/trie/trie_kvstore.go +++ b/packages/trie/trie_kvstore.go @@ -202,7 +202,7 @@ func (tr *TrieUpdatable) delete(triePath []byte) { nodes[i-1].removeChild(nil, idxAsChild) } } - assertf(nodes[0] != nil, "please do not delete root") + assertf(nodes[0] != nil, "please do not delete root") //nolint:gosec // false positive } func (tr *TrieUpdatable) mergeNodeIfNeeded(node *bufferedNode) *bufferedNode {