Skip to content

Commit a0b4908

Browse files
committed
Fix lint
1 parent f39ee9b commit a0b4908

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/azd/pkg/azdext/extension_error.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ func captureErrorInfo(err error) errorInfo {
7575
info.message = extErr.Message
7676
info.details = extErr.Details
7777
info.errorCode = extErr.ErrorCode
78+
//nolint:gosec // G115: HTTP status codes are well within int32 range
7879
info.statusCode = int32(extErr.StatusCode)
7980
info.service = extErr.ServiceName
8081
return info
@@ -84,6 +85,7 @@ func captureErrorInfo(err error) errorInfo {
8485
var respErr *azcore.ResponseError
8586
if errors.As(err, &respErr) {
8687
info.errorCode = respErr.ErrorCode
88+
//nolint:gosec // G115: HTTP status codes are well within int32 range
8789
info.statusCode = int32(respErr.StatusCode)
8890
if respErr.RawResponse != nil && respErr.RawResponse.Request != nil {
8991
info.service = respErr.RawResponse.Request.Host

0 commit comments

Comments
 (0)