mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-16 10:15:31 +00:00
simplify use of callback
This commit is contained in:
parent
df97a6ac00
commit
46a6d391cd
@ -136,12 +136,7 @@ class IPFS {
|
|||||||
blockchainConfig: self.blockchainConfig
|
blockchainConfig: self.blockchainConfig
|
||||||
});
|
});
|
||||||
self.logger.trace(`Storage module: Launching ipfs process...`);
|
self.logger.trace(`Storage module: Launching ipfs process...`);
|
||||||
return storageProcessesLauncher.launchProcess('ipfs', (err) => {
|
return storageProcessesLauncher.launchProcess('ipfs', callback);
|
||||||
if (err) {
|
|
||||||
return callback(err);
|
|
||||||
}
|
|
||||||
callback();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
registerUploadCommand() {
|
registerUploadCommand() {
|
||||||
|
@ -105,12 +105,7 @@ class Swarm {
|
|||||||
blockchainConfig: self.blockchainConfig
|
blockchainConfig: self.blockchainConfig
|
||||||
});
|
});
|
||||||
self.logger.trace(`Storage module: Launching swarm process...`);
|
self.logger.trace(`Storage module: Launching swarm process...`);
|
||||||
return storageProcessesLauncher.launchProcess('swarm', (err) => {
|
return storageProcessesLauncher.launchProcess('swarm', callback);
|
||||||
if (err) {
|
|
||||||
return callback(err);
|
|
||||||
}
|
|
||||||
callback();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
registerUploadCommand(cb) {
|
registerUploadCommand(cb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user