Skip to content

Commit e318082

Browse files
committed
Remove unneeded try/catch
1 parent 57ae2d9 commit e318082

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/lib/converter.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var watchPromisesChain = Promise.resolve();
1010

1111
function convert(logger, projectDir, appDir, options) {
1212
options = options || {};
13-
var sassPath = getSassPath();
13+
var sassPath = getSassPath(logger);
1414
var data = {
1515
sassPath,
1616
projectDir,
@@ -48,12 +48,10 @@ function createWatcher(data) {
4848
});
4949
}
5050

51-
function getSassPath() {
51+
function getSassPath(logger) {
5252
var sassPath = require.resolve('node-sass/bin/node-sass');
5353
if (fs.existsSync(sassPath)) {
54-
try {
55-
logger.info('Found peer node-sass');
56-
} catch (err) { }
54+
logger.info('Found peer node-sass');
5755
} else {
5856
throw new Error('node-sass installation local to project was not found. Install by executing `npm install node-sass`.');
5957
}

0 commit comments

Comments
 (0)