From c73cf6ca91722a5f16d262d03d4f910d51428e1a Mon Sep 17 00:00:00 2001 From: Dylan Anthony Date: Wed, 26 Jun 2024 10:40:29 -0600 Subject: [PATCH] Manually fix some formatting --- internals-js/src/federation.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internals-js/src/federation.ts b/internals-js/src/federation.ts index 74f797151..e0522d606 100644 --- a/internals-js/src/federation.ts +++ b/internals-js/src/federation.ts @@ -1297,15 +1297,15 @@ contextDirective(): Post20FederationDirectiveDefinition<{ name: string }> { baseDirectives.push(policyDirective); } - const contextDirective = this.contextDirective(); - if (isFederationDirectiveDefinedInSchema(contextDirective)) { - baseDirectives.push(contextDirective); - } + const contextDirective = this.contextDirective(); + if (isFederationDirectiveDefinedInSchema(contextDirective)) { + baseDirectives.push(contextDirective); + } - const fromContextDirective = this.fromContextDirective(); - if (isFederationDirectiveDefinedInSchema(fromContextDirective)) { - baseDirectives.push(fromContextDirective); - } + const fromContextDirective = this.fromContextDirective(); + if (isFederationDirectiveDefinedInSchema(fromContextDirective)) { + baseDirectives.push(fromContextDirective); + } return baseDirectives; } @@ -1545,7 +1545,7 @@ export class FederationBlueprint extends SchemaBlueprint { for (const application of contextDirective.applications()) { const parent = application.parent; const name = application.arguments().name as string; -const match = name.match(/^([A-Za-z]\w*)$/); + const match = name.match(/^([A-Za-z]\w*)$/); if (name.includes('_')) { errorCollector.push(ERRORS.CONTEXT_NAME_INVALID.err( `Context name "${name}" may not contain an underscore.`,