Skip to content

Commit 4bcdec6

Browse files
committed
fix: lint(scopelint)
1 parent 54d2f71 commit 4bcdec6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/gopackages_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func TestGetGoModule(t *testing.T) {
7979
type args struct {
8080
goMod string
8181
}
82+
8283
tests := []struct {
8384
name string
8485
args args
@@ -108,7 +109,9 @@ func TestGetGoModule(t *testing.T) {
108109
wantErr: true,
109110
},
110111
}
112+
111113
for _, tt := range tests {
114+
tt := tt // escape: Using the variable on range scope `tt` in loop literal.
112115
t.Run(tt.name, func(t *testing.T) {
113116
got, err := gopackages.GetGoModule(tt.args.goMod)
114117
if (err != nil) != tt.wantErr {

0 commit comments

Comments
 (0)