From df8ca76e28d8c8acfcc7cceea49523290f623420 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 27 Jul 2018 13:08:00 +0100 Subject: [PATCH] Fix scope of the callback --- lib/modules/swarm/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/swarm/index.js b/lib/modules/swarm/index.js index 130ff9d8..8c353170 100644 --- a/lib/modules/swarm/index.js +++ b/lib/modules/swarm/index.js @@ -93,9 +93,9 @@ class Swarm { return storageProcessesLauncher.launchProcess('swarm', callback); } - registerUploadCommand(cb) { + registerUploadCommand() { const self = this; - this.embark.registerUploadCommand('swarm', () => { + this.embark.registerUploadCommand('swarm', (cb) => { let upload_swarm = new UploadSwarm({ buildDir: self.buildDir || 'dist/', storageConfig: self.storageConfig,