mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
concentrate undefined logic in the plugin output
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
bef490f5c7
commit
28fa906bbf
@ -38,11 +38,13 @@ class Console {
|
||||
var pluginCmds = this.plugins.getPluginsProperty('console', 'console');
|
||||
for (let pluginCmd of pluginCmds) {
|
||||
let pluginOutput = pluginCmd.call(this, cmd, {});
|
||||
//console.log("plugin output: ", pluginOutput)
|
||||
if (pluginOutput !== false && pluginOutput !== 'false' && pluginOutput !== undefined)
|
||||
return callback(pluginOutput);
|
||||
if (pluginOutput === undefined) {
|
||||
return callback("");
|
||||
}
|
||||
}
|
||||
//console.log("Do we hit the here?")
|
||||
|
||||
let output = this.processEmbarkCmd(cmd);
|
||||
if (output) {
|
||||
return callback(output);
|
||||
|
Loading…
x
Reference in New Issue
Block a user