Skip to content

Commit a35059f

Browse files
committed
Clean-up
1 parent 04cb1ef commit a35059f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
var util = require('util');
21
var utils = require('loader-utils');
32
var sass = require('node-sass');
43
var path = require('path');
54
var sassGraph = require('sass-graph');
65

7-
86
module.exports = function (content) {
97
this.cacheable();
108
var callback = this.async();
@@ -13,7 +11,7 @@ module.exports = function (content) {
1311
opt.data = content;
1412

1513
// skip empty files, otherwise it will stop webpack, see issue #21
16-
if(opt.data.trim() == '') {
14+
if (opt.data.trim() === '') {
1715
return callback(null, content);
1816
}
1917

@@ -36,7 +34,7 @@ module.exports = function (content) {
3634
graph.visitDescendents(this.resourcePath, function (imp) {
3735
this.addDependency(imp);
3836
}.bind(this));
39-
} catch(err) {
37+
} catch (err) {
4038
this.emitError(err);
4139
}
4240
}.bind(this);

0 commit comments

Comments
 (0)