From 8792eda8f556903a3cd2a4e0b1aee1874fde92d0 Mon Sep 17 00:00:00 2001 From: Marek Fajkus Date: Mon, 20 Aug 2018 10:30:27 +0100 Subject: [PATCH] unify usage of context --- index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 5467d1a..5681541 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,6 @@ module.exports = { }, build: function(/* context */) { - var self = this; var configFile = this.readConfig('configFile'); var outputPath = './dist'; @@ -61,15 +60,14 @@ module.exports = { }.bind(this)); }, _logSuccess: function(outputPath) { - var self = this; var files = glob.sync('**/**/*', { nonull: false, nodir: true, cwd: outputPath }); if (files && files.length) { files.forEach(function(path) { - self.log('✔ ' + path, { verbose: true }); - }); + this.log('✔ ' + path, { verbose: true }); + }.bind(this)); } - self.log('build ok', { verbose: true }); + this.log('build ok', { verbose: true }); return RSVP.resolve(files); }