Skip to content

Commit fc0b7ba

Browse files
author
iasergunin
committed
fixed linter
1 parent 77d5280 commit fc0b7ba

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.golangci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ issues:
8585
linters:
8686
- wsl
8787
text: "only cuddled expressions if assigning variable or using from line above"
88+
- path: _test\.go
89+
linters:
90+
- wsl
91+
text: "assignments should only be cuddled with other assignments"
92+
- path: _test\.go
93+
linters:
94+
- revive
95+
text: "seems to be unused, consider removing or renaming it as _"
8896
- path: _test\.go
8997
linters:
9098
- revive

trm/manager/manager_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,9 @@ func Test_transactionManager_Do_Cancel(t *testing.T) {
743743
WithSettings(tt.fields.settings),
744744
)
745745

746-
err := error(nil)
747-
wg := sync.WaitGroup{}
746+
var err error
748747

748+
wg := sync.WaitGroup{}
749749
wg.Add(1)
750750

751751
ctx, cancel := tt.ctx(context.Background())

0 commit comments

Comments
 (0)