Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 54e1605 according to the output
from Gofumpt and Prettier.

Details: #2663
  • Loading branch information
deepsource-autofix[bot] authored Oct 8, 2024
1 parent 54e1605 commit 6dcae2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gateway/lb/handler/grpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ func (s *server) MultiLinearSearch(
r, err := s.LinearSearch(ctx, query)
if err != nil {
st, _ := status.FromError(err)
if st!= nil && sspan != nil {
if st != nil && sspan != nil {
sspan.RecordError(err)
sspan.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
sspan.SetStatus(trace.StatusError, err.Error())
Expand Down

0 comments on commit 6dcae2b

Please sign in to comment.