Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Nov 17, 2014
1 parent 04cb1ef commit a35059f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
var util = require('util');
var utils = require('loader-utils');
var sass = require('node-sass');
var path = require('path');
var sassGraph = require('sass-graph');


module.exports = function (content) {
this.cacheable();
var callback = this.async();
Expand All @@ -13,7 +11,7 @@ module.exports = function (content) {
opt.data = content;

// skip empty files, otherwise it will stop webpack, see issue #21
if(opt.data.trim() == '') {
if (opt.data.trim() === '') {
return callback(null, content);
}

Expand All @@ -36,7 +34,7 @@ module.exports = function (content) {
graph.visitDescendents(this.resourcePath, function (imp) {
this.addDependency(imp);
}.bind(this));
} catch(err) {
} catch (err) {
this.emitError(err);
}
}.bind(this);
Expand Down

0 comments on commit a35059f

Please sign in to comment.