From 1ff2c0d636a8ca06355646b995b0bc6f21431fc2 Mon Sep 17 00:00:00 2001 From: Valentin Cocaud Date: Tue, 25 Jul 2023 15:52:12 +0200 Subject: [PATCH] run prettier --- .../utils/src/resolve-additional-resolvers.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/utils/src/resolve-additional-resolvers.ts b/packages/utils/src/resolve-additional-resolvers.ts index 512db01912932..47420bf6f0da9 100644 --- a/packages/utils/src/resolve-additional-resolvers.ts +++ b/packages/utils/src/resolve-additional-resolvers.ts @@ -265,7 +265,12 @@ export function resolveAdditionalResolversWithoutImport( const resolverData = { root, args, context, info, env: process.env }; const targetArgs: any = {}; - deeplySetArgs(resolverData, { targetArgs }, 'targetArgs', additionalResolver.sourceArgs) + deeplySetArgs( + resolverData, + { targetArgs }, + 'targetArgs', + additionalResolver.sourceArgs, + ); const options: any = { ...baseOptions, @@ -320,16 +325,12 @@ export function resolveAdditionalResolvers( ); } - function deeplySetArgs(resolverData: any, args: object, path: string, value: any) { if (typeof value === 'string') { - dset(args, path, stringInterpolator.parse( - value.toString(), - resolverData, - )) + dset(args, path, stringInterpolator.parse(value.toString(), resolverData)); } else { for (const key in value) { - deeplySetArgs(resolverData, args, `${path}.${key}`, value[key]) + deeplySetArgs(resolverData, args, `${path}.${key}`, value[key]); } } }