diff --git a/src/role.custom-resource.ts b/src/role.custom-resource.ts index 316a143..f2b241c 100644 --- a/src/role.custom-resource.ts +++ b/src/role.custom-resource.ts @@ -43,9 +43,7 @@ export interface RoleProps { export class Role extends CustomResource { constructor(scope: Construct, id: string, props: RoleProps) { - if ( - (props.database && props.databaseName) - ) + if (props.database && props.databaseName) throw "Specify either database or databaseName" super(scope, id, { serviceToken: props.provider.serviceToken,