mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-10 22:16:20 +00:00
chore(modules/storage): make process launcher callback optional
We aren't always interested in calling a function after the storage process has been launched, so passing a callback should be optional.
This commit is contained in:
parent
41176f0f70
commit
de901b73fc
@ -86,6 +86,8 @@ class StorageProcessesLauncher {
|
||||
|
||||
launchProcess(storageName, callback) {
|
||||
const self = this;
|
||||
callback = callback || function () {};
|
||||
|
||||
if (self.processes[storageName]) {
|
||||
return callback(__('Storage process already started'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user