File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments