Skip to content

Commit 4eab8b2

Browse files
committed
style(eslint): auto fix
1 parent 0d0247c commit 4eab8b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/env.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ function isWindows() {
1414
*/
1515
function install(cwd) {
1616
return new Promise((resolve, reject) => {
17-
const suffix = isWindows() ? '.cmd' : '';
17+
const suffix = isWindows() ? '.cmd' : ''
1818
const cmd = (isYarn() ? 'yarn' : 'npm') + suffix
19-
const ps = require('child_process').spawn(cmd, ['install'], { cwd, stdio: 'inherit' });
19+
const ps = require('child_process').spawn(cmd, ['install'], {cwd, stdio: 'inherit'})
2020
ps.on('close', (code) => {
2121
if (code !== 0) {
2222
reject(code)
23-
console.error(`依赖自动安装出错${code},可手动安装!`);
23+
console.error(`依赖自动安装出错${code},可手动安装!`)
2424
} else {
25-
console.log(`依赖安装完成!`);
25+
console.log('依赖安装完成!')
2626
resolve()
2727
}
28-
});
28+
})
2929
})
3030
}
3131

0 commit comments

Comments
 (0)