Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemmsilva committed Apr 23, 2024
1 parent 108ed74 commit 3aac8b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/testutil/run_heavy_tests_false.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion packages/trie/trie_kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3aac8b2

Please sign in to comment.