From fd483f8dcfc6b45011bad736a514bb0a2efa36a1 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:09:52 +0000 Subject: [PATCH] style: format code with Gofumpt and Prettier This commit fixes the style issues introduced in 75cb403 according to the output from Gofumpt and Prettier. Details: https://github.com/vdaas/vald/pull/2639 --- internal/net/grpc/errdetails/errdetails.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/net/grpc/errdetails/errdetails.go b/internal/net/grpc/errdetails/errdetails.go index f53419d3375..a8e016c1d71 100644 --- a/internal/net/grpc/errdetails/errdetails.go +++ b/internal/net/grpc/errdetails/errdetails.go @@ -54,7 +54,7 @@ const ( ValdResourceOwner = "vdaas.org vald team " ValdGRPCResourceTypePrefix = "github.com/vdaas/vald/apis/grpc/v1" - typePrefix = "type.googleapis.com/google.rpc." + typePrefix = "type.googleapis.com/google.rpc." typePrefixV1 = "type.googleapis.com/rpc.v1." ) @@ -84,7 +84,7 @@ func (d *Detail) MarshalJSON() (body []byte, err error) { if d == nil { return nil, nil } - switch strings.TrimPrefix(strings.TrimPrefix(d.TypeURL, typePrefix), typePrefixV1){ + switch strings.TrimPrefix(strings.TrimPrefix(d.TypeURL, typePrefix), typePrefixV1) { case DebugInfoMessageName: m, ok := d.Message.(*DebugInfo) if ok { @@ -314,7 +314,7 @@ func AnyToErrorDetail(a *types.Any) proto.Message { return nil } var err error - switch strings.TrimPrefix(strings.TrimPrefix(a.GetTypeUrl(), typePrefix), typePrefixV1){ + switch strings.TrimPrefix(strings.TrimPrefix(a.GetTypeUrl(), typePrefix), typePrefixV1) { case DebugInfoMessageName: var m DebugInfo err = types.UnmarshalAny(a, &m)