Skip to content

Commit

Permalink
fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
iasergunin committed Feb 15, 2024
1 parent 77d5280 commit fc0b7ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ issues:
linters:
- wsl
text: "only cuddled expressions if assigning variable or using from line above"
- path: _test\.go
linters:
- wsl
text: "assignments should only be cuddled with other assignments"
- path: _test\.go
linters:
- revive
text: "seems to be unused, consider removing or renaming it as _"
- path: _test\.go
linters:
- revive
Expand Down
4 changes: 2 additions & 2 deletions trm/manager/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,9 @@ func Test_transactionManager_Do_Cancel(t *testing.T) {
WithSettings(tt.fields.settings),
)

err := error(nil)
wg := sync.WaitGroup{}
var err error

wg := sync.WaitGroup{}
wg.Add(1)

ctx, cancel := tt.ctx(context.Background())
Expand Down

0 comments on commit fc0b7ba

Please sign in to comment.