mirror of https://github.com/embarklabs/embark.git
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) {
|
launchProcess(storageName, callback) {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
callback = callback || function () {};
|
||||||
|
|
||||||
if (self.processes[storageName]) {
|
if (self.processes[storageName]) {
|
||||||
return callback(__('Storage process already started'));
|
return callback(__('Storage process already started'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue