Skip to content

Commit 4e80abb

Browse files
Merge pull request #9 from SimplrJS/hotfix/tslint-errors
TsLint errors fixed.
2 parents 4969f83 + 6be8685 commit 4e80abb

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/bundle-cli.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class Cli {
4444
let config = await this.readConfigFile(configFileName) as Contracts.Config;
4545
console.info("Using config:", fullConfigPath);
4646
this.bundle(this.getConfig(config, argv));
47-
}
48-
catch (err) {
47+
} catch (err) {
4948
this.exitWithError(`[Error] Config file ${configFileName} is not valid.`);
5049
}
5150
return;
@@ -62,14 +61,13 @@ class Cli {
6261
console.info(archy(archyData));
6362

6463
if (bundleResult.content == null) {
65-
this.exitWithError(`[Error] An error has occured:${os.EOL} Concatenation result has no content.`)
64+
this.exitWithError(`[Error] An error has occured:${os.EOL} Concatenation result has no content.`);
6665
return;
6766
}
6867
try {
6968
await this.renderScss(bundleResult.content);
70-
}
71-
catch (scssError) {
72-
this.exitWithError(`[Error] There is an error in your styles:${os.EOL}${scssError}`)
69+
} catch (scssError) {
70+
this.exitWithError(`[Error] There is an error in your styles:${os.EOL}${scssError}`);
7371
}
7472

7573
// Ensure the directory exists
@@ -79,8 +77,7 @@ class Cli {
7977

8078
let fullPath = path.resolve(config.dest);
8179
console.info(`[Done] Bundled into:${os.EOL}${fullPath}`);
82-
}
83-
catch (error) {
80+
} catch (error) {
8481
this.exitWithError(`[Error] An error has occured:${os.EOL}${error}`);
8582
}
8683
}
@@ -96,7 +93,7 @@ class Cli {
9693
reject(`${error.message} on line (${error.line}, ${error.column})`);
9794
}
9895
});
99-
})
96+
});
10097
}
10198

10299
private getArchyData(bundleResult: BundleResult, sourceDirectory?: string) {
@@ -137,8 +134,7 @@ class Cli {
137134
try {
138135
await fs.access(fullPath, fs.constants.F_OK);
139136
return true;
140-
}
141-
catch (err) {
137+
} catch (err) {
142138
return false;
143139
}
144140
}

0 commit comments

Comments
 (0)