Skip to content

Commit 2b03013

Browse files
committed
chore: make formatting equal to latest formatting, but fix one bug
1 parent fff0b41 commit 2b03013

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

packages/sst/src/stacks/deploy.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ export async function publishAssets(stacks: CloudFormationStackArtifact[]) {
2626
await buildAndPublishAssets(deployment, stackArtifact);
2727
results[stackArtifact.stackName] = {
2828
isUpdate: cfnStack && cfnStack.StackStatus !== "REVIEW_IN_PROGRESS",
29-
params: await buildCloudFormationStackParams(
30-
deployment,
31-
stackArtifact,
32-
cdk
33-
),
29+
params: await buildCloudFormationStackParams(deployment, stackArtifact, cdk),
3430
};
3531
}
3632
return results;
@@ -126,11 +122,7 @@ export async function deploy(
126122
await deleteCloudFormationStack(stack.stackName);
127123
}
128124

129-
const stackParams = await buildCloudFormationStackParams(
130-
deployment,
131-
stack,
132-
cdk
133-
);
125+
const stackParams = await buildCloudFormationStackParams(deployment, stack, cdk);
134126
try {
135127
cfnStack && cfnStack.StackStatus !== "REVIEW_IN_PROGRESS"
136128
? await updateCloudFormationStack(stackParams)
@@ -313,9 +305,7 @@ async function buildCloudFormationStackParams(
313305
cdkOptions?: ConfigOptions["cdk"]
314306
) {
315307
const env = await deployment.envs.accessStackForMutableStackOperations(stack);
316-
const executionRoleArn =
317-
cdkOptions?.cloudFormationExecutionRole ??
318-
(await env.replacePlaceholders(stack.cloudFormationExecutionRoleArn));
308+
const executionRoleArn = cdkOptions?.cloudFormationExecutionRole ?? (await env.replacePlaceholders(stack.cloudFormationExecutionRoleArn));
319309
const s3Url = stack
320310
.stackTemplateAssetObjectUrl!.replace(
321311
"${AWS::AccountId}",

0 commit comments

Comments
 (0)