From 661b55acbc984403928c8a51858384d6f3ea8d5d Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Mon, 25 Mar 2024 08:41:44 +0000 Subject: [PATCH] delete unnecessary type arguments in convertParamsToMap call --- graphql/mutation.go | 2 +- graphql/query.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql/mutation.go b/graphql/mutation.go index deccfe5..8cd368a 100644 --- a/graphql/mutation.go +++ b/graphql/mutation.go @@ -41,7 +41,7 @@ func (m *Mutation[Payload, Params]) WithQueryParam( func (m *Mutation[Payload, Params]) Execute(ctx context.Context, params Params) (Payload, error) { - paramsMap := convertParamsToMap[Params](params) + paramsMap := convertParamsToMap(params) for k, v := range m.additionalPayloadParams { paramsMap[k] = v } diff --git a/graphql/query.go b/graphql/query.go index 3fb45fc..1d5cc77 100644 --- a/graphql/query.go +++ b/graphql/query.go @@ -50,7 +50,7 @@ func (r *Query[ReturnType, Params]) WithQueryParam( func (r *Query[ReturnType, Params]) Get(ctx context.Context, params Params) (ReturnType, error) { - paramsMap := convertParamsToMap[Params](params) + paramsMap := convertParamsToMap(params) for k, v := range r.additionalPayloadParams { paramsMap[k] = v }