dpogue commented on code in PR #1320:
URL: https://github.com/apache/cordova-ios/pull/1320#discussion_r1182530717
##########
lib/run.js:
##########
@@ -229,16 +229,16 @@ function listEmulators () {
});
}
-module.exports.runListDevices = async function (options) {
- const { options: cliArgs } = options;
+module.exports.runListDevices = async function (options = {}) {
+ const { options: cliArgs = {} } = options;
Review Comment:
`const cliArgs = options.options ?? {};` seems way easier to read IMO, but I
know that's not the "cool" way of doing things anymore
--
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]