Skip to content

Commit e41cebe

Browse files
author
Lorenz Kästle
committed
apply go fix
1 parent cad76e0 commit e41cebe

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

internal/api/listener_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ func TestSeverityToExitCode(t *testing.T) {
446446
}
447447

448448
for _, tt := range tests {
449-
tt := tt
450449
t.Run(tt.name, func(t *testing.T) {
451450
if got := severityToExitCode(tt.status, tt.severity, severityLevels); got != tt.want {
452451
t.Errorf("severityToExitCode(%q, %q) = %d, want %d",
@@ -504,7 +503,6 @@ func TestMapToStableString(t *testing.T) {
504503
}
505504

506505
for _, tt := range tests {
507-
tt := tt
508506
t.Run(tt.name, func(t *testing.T) {
509507
if got := mapToStableString(tt.in); got != tt.want {
510508
t.Errorf("mapToStableString() = %q, want %q", got, tt.want)

internal/config/config_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ func TestMergeSeverityLevels(t *testing.T) {
4444
}
4545

4646
for name, tt := range tests {
47-
tt := tt
4847
t.Run(name, func(t *testing.T) {
4948
got := mergeSeverityLevels(tt.custom)
5049

0 commit comments

Comments
 (0)