style(@embark/plugins/whisper): fix linter errors

This commit is contained in:
Michael Bradley, Jr 2019-09-12 19:40:22 -05:00
parent fce8bca509
commit 4499f1580f

View File

@ -27,14 +27,14 @@ class Whisper {
this.events.request("communication:node:register", "whisper", (readyCb) => {
let clientName = this.communicationConfig.client || "geth";
let registerCb = this.whisperNodes[clientName];
if (!registerCb) return cb("whisper client " + clientName + " not found");
if (!registerCb) return readyCb("whisper client " + clientName + " not found");
registerCb.apply(registerCb, [readyCb]);
});
this.events.on("communication:started", () => {
this.api = new API(embark);
this.api.registerAPICalls();
this.connectEmbarkJSProvider()
this.connectEmbarkJSProvider();
});
}