Skip to content

Commit f54896a

Browse files
committed
linting happy
1 parent 3bc538a commit f54896a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

index.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,23 +254,25 @@ class ServerlessStepFunctions {
254254
this.options.region)
255255
.then((result) => {
256256
policyArn = `arn:aws:iam::${result.Account}:policy/${this.getIamPolicyName()}`;
257+
257258
return this.provider.request('IAM',
258259
'detachRolePolicy',
259260
{
260261
PolicyArn: policyArn,
261262
RoleName: this.getIamRoleName(),
262263
},
263264
this.options.stage,
264-
this.options.region)})
265-
.then((result) => this.provider.request('IAM',
266-
'deletePolicy',
267-
{
268-
PolicyArn: policyArn,
269-
},
270-
this.options.stage,
271-
this.options.region)
265+
this.options.region);
266+
})
267+
.then(() => this.provider.request('IAM',
268+
'deletePolicy',
269+
{
270+
PolicyArn: policyArn,
271+
},
272+
this.options.stage,
273+
this.options.region)
272274
)
273-
.then((result) => this.provider.request('IAM',
275+
.then(() => this.provider.request('IAM',
274276
'deleteRole',
275277
{
276278
RoleName: this.getIamRoleName(),

0 commit comments

Comments
 (0)