Skip to content

Commit c8ca1b8

Browse files
committed
Fixing issues with coding standards.
1 parent e2db603 commit c8ca1b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bin/lib/cli-utils.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ function loadConfig (program, options) {
4242
argv = { ...config, ...argv }
4343
} catch (err) {
4444
// If config file was specified, but it doesn't exist, stop with error message
45-
if(typeof argv['configFile'] !== 'undefined') {
46-
if (! fs.existsSync(configFile)) {
47-
console.log(red(bold('ERR')), 'Config file '+configFile+' doesn\'t exist.')
45+
if (typeof argv['configFile'] !== 'undefined') {
46+
if (!fs.existsSync(configFile)) {
47+
console.log(red(bold('ERR')), 'Config file ' + configFile + ' doesn\'t exist.')
4848
process.exit(1)
4949
}
5050
}
51-
51+
5252
// If the file exists, but parsing failed, stop with error message
5353
if (fs.existsSync(configFile)) {
54-
console.log(red(bold('ERR')), 'config file '+configFile+' couldn\'t be parsed: '+err)
54+
console.log(red(bold('ERR')), 'config file ' + configFile + ' couldn\'t be parsed: ' + err)
5555
process.exit(1)
5656
}
57-
57+
5858
// Legacy behavior - if config file does not exist, start with default
5959
// values, but an info message to create a config file.
6060
console.log(cyan(bold('TIP')), 'create a config.json: `$ solid init`')

0 commit comments

Comments
 (0)