Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gosec lint issues #6107

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
}
}
if st != nil && st.Code != 0 {
return nil, status.Error(codes.Code(st.Code), st.Message)
return nil, status.Error(codes.Code(st.Code), st.Message) // nolint:gosec // Status code can't be negative.

Check warning on line 276 in instrumentation/google.golang.org/grpc/otelgrpc/internal/test/test_utils.go

View check run for this annotation

Codecov / codecov/patch

instrumentation/google.golang.org/grpc/otelgrpc/internal/test/test_utils.go#L276

Added line #L276 was not covered by tests
}
pl, err := serverNewPayload(in.GetResponseType(), in.GetResponseSize())
if err != nil {
Expand Down Expand Up @@ -344,7 +344,7 @@
}
st := in.GetResponseStatus()
if st != nil && st.Code != 0 {
return status.Error(codes.Code(st.Code), st.Message)
return status.Error(codes.Code(st.Code), st.Message) // nolint:gosec // Status code can't be negative.

Check warning on line 347 in instrumentation/google.golang.org/grpc/otelgrpc/internal/test/test_utils.go

View check run for this annotation

Codecov / codecov/patch

instrumentation/google.golang.org/grpc/otelgrpc/internal/test/test_utils.go#L347

Added line #L347 was not covered by tests
}

cs := in.GetResponseParameters()
Expand Down
Loading