Skip to content

Commit

Permalink
add nolint: staticcheck for early loop termination
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitris committed Apr 25, 2024
1 parent 4bd9b24 commit 3d2f8c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adapters/minutemedia/minutemedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ func extractOrg(openRTBRequest *openrtb2.BidRequest) (string, error) {
return "", fmt.Errorf("failed to unmarshal ImpExtMinuteMedia: %w", err)
}

// golangci-lint staticcheck SA4004: the surrounding loop is unconditionally terminated
// TODO: confirm this is intended and add '// nosemgrep: SA4004'
//nolint: staticcheck // SA4004: the surrounding loop is unconditionally terminated
return strings.TrimSpace(impExt.Org), nil
}

Expand Down

0 comments on commit 3d2f8c6

Please sign in to comment.