Github user nikhilkh commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/428#discussion_r60261791 --- Diff: cordova-lib/src/cordova/restore-util.js --- @@ -112,7 +112,10 @@ function installPluginsFromConfigXML(args) { // assume it is the location to install from. var pluginSpec = pluginEntry.spec; pluginName = pluginEntry.name; - var installFrom = semver.validRange(pluginSpec, true) ? pluginName + '@' + pluginSpec : pluginSpec; + var installFrom = (pluginSpec && semver.validRange(pluginSpec, true)) ? --- End diff -- This is a complex ternary - consider break into and if else as it will make it simpler to read.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org