From 6dcae2bc3111f077a16e88a1a0d19243b955aca1 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 05:25:59 +0000 Subject: [PATCH] style: format code with Gofumpt and Prettier This commit fixes the style issues introduced in 54e1605 according to the output from Gofumpt and Prettier. Details: https://github.com/vdaas/vald/pull/2663 --- pkg/gateway/lb/handler/grpc/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gateway/lb/handler/grpc/handler.go b/pkg/gateway/lb/handler/grpc/handler.go index 9c30294ef1..8af3ec4e8d 100644 --- a/pkg/gateway/lb/handler/grpc/handler.go +++ b/pkg/gateway/lb/handler/grpc/handler.go @@ -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())