Skip to content

Commit

Permalink
Manually fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-apollo committed Jun 26, 2024
1 parent f8006e6 commit c73cf6c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internals-js/src/federation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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.`,
Expand Down

0 comments on commit c73cf6c

Please sign in to comment.