Skip to content

Commit 3b11183

Browse files
abetomoDeviaVir
authored andcommitted
Remove unnecessary promise chain (#404)
It just returns the return value as it is.
1 parent 1d2a673 commit 3b11183

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lib/main.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,7 @@ they may not work as expected in the Lambda environment.
672672
})
673673
}
674674
return Promise.resolve()
675-
})).then((data) => {
676-
return data
677-
})
675+
}))
678676
}
679677

680678
_updateScheduleEvents (scheduleEvents, functionArn, scheduleList) {
@@ -836,9 +834,7 @@ they may not work as expected in the Lambda environment.
836834
program,
837835
params.FunctionName
838836
)
839-
]).then((results) => {
840-
return results
841-
})
837+
])
842838
})
843839
}).catch(() => {
844840
// Function does not exist
@@ -868,9 +864,7 @@ they may not work as expected in the Lambda environment.
868864
program,
869865
params.FunctionName
870866
)
871-
]).then((results) => {
872-
return results
873-
})
867+
])
874868
})
875869
})
876870
})

0 commit comments

Comments
 (0)