Skip to content

Commit

Permalink
remove if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Feb 11, 2024
1 parent 0cdad0b commit f487512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,7 @@ export class GraphqlApi extends GraphqlApiBase {
description: sourceApiConfig.description,
});

if (sourceApiConfig.sourceApi instanceof GraphqlApi) {
sourceApiConfig.sourceApi.addSchemaDependency(association);
}
sourceApiConfig.sourceApi.addSchemaDependency(association);

// Add permissions to merged api execution role
const executionRole = this.mergedApiExecutionRole as IRole;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ export class SourceApiAssociation extends Resource implements ISourceApiAssociat
description: props.description,
});

if (this.sourceApi instanceof GraphqlApi) {
this.sourceApi.addSchemaDependency(this.association);
}
this.sourceApi.addSchemaDependency(this.association);

this.associationId = this.association.attrAssociationId;
this.associationArn = this.association.attrAssociationArn;
Expand Down

0 comments on commit f487512

Please sign in to comment.