erisu commented on code in PR #285:
URL: https://github.com/apache/cordova-paramedic/pull/285#discussion_r2611480534
##########
lib/paramedic.js:
##########
@@ -244,17 +249,17 @@ class ParamedicRunner {
})
]);
})
- .then((results) => {
- return results[1];
- })
- .fin((result) => {
- return runProcess
- ? Q.Promise((resolve) => {
+ .then((results) => results[1])
+ .then((result) => {
Review Comment:
Same in this area,
I believe
[`Promise.prototype.finally`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally)
is not the correct function to use.
In this case, we are expecting results to be passed in and then later we
continue to pass it up the chain.
The
[`onFinally`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally#onfinally)
function takes in no arguments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]