File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments