From a35059fb94c07d92c51e032dcc44903307571b3a Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Mon, 17 Nov 2014 16:13:59 +0100 Subject: [PATCH] Clean-up --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 0c16011c..be2ca18e 100644 --- a/index.js +++ b/index.js @@ -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(); @@ -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); } @@ -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);