linters: Bump golangci-lint version to v1.52.2 and fix issues (#1169)

* fix linter issues

* linter issue suppressing and fixing

* change linter version and linter issues fix

* Bump version
This commit is contained in:
Samuael A
2023-04-27 00:13:46 +00:00
committed by GitHub
parent 42475bf2b8
commit 969669cb0d
70 changed files with 346 additions and 329 deletions

View File

@@ -99,6 +99,7 @@ func TestAudit(t *testing.T) {
}
}
//nolint:gocritic // Only used as a testing helper function in this package
func writeAudit(t *testing.T) {
t.Helper()
var wg sync.WaitGroup
@@ -116,6 +117,7 @@ func writeAudit(t *testing.T) {
wg.Wait()
}
//nolint:gocritic // Only used as a testing helper function in this package
func readHelper(t *testing.T) {
t.Helper()

View File

@@ -153,6 +153,8 @@ func seedWithdrawData() {
Event(resp)
}
}
//nolint:gocritic // Only used as a testing helper function in this package
func withdrawHelper(t *testing.T) {
t.Helper()
seedWithdrawData()