Unverified Commit a85ae1d9 authored by Joe Haddad's avatar Joe Haddad
Browse files

False expression should not be in dependencies

parent ee3b788f
Showing with 5 additions and 2 deletions
+5 -2
......@@ -164,8 +164,11 @@ function install(useYarn, dependencies, verbose, isOnline) {
args = [
'add',
'--exact',
isOnline === false && '--offline'
].concat(dependencies);
];
if (!isOnline) {
args.push('--offline');
}
[].push.apply(args, dependencies);
if (!isOnline) {
console.log(chalk.yellow('You appear to be offline.'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment