From 28fa906bbfe1f15e9fc0cffa7a48a39dea060b0e Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Fri, 18 May 2018 10:04:49 -0500 Subject: [PATCH] concentrate undefined logic in the plugin output Signed-off-by: VoR0220 --- lib/dashboard/console.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dashboard/console.js b/lib/dashboard/console.js index 1472be79..a88f9e94 100644 --- a/lib/dashboard/console.js +++ b/lib/dashboard/console.js @@ -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);