From: Mikael Nordfeldth Date: Tue, 2 Jun 2015 12:25:45 +0000 (+0200) Subject: return logic tidied up for command interpretation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c5da7306bdc71beab2866038480ab6aa430a02ff;p=quix0rs-gnu-social.git return logic tidied up for command interpretation --- diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php index f6c7518fbd..c546cf0fca 100644 --- a/lib/commandinterpreter.php +++ b/lib/commandinterpreter.php @@ -298,8 +298,6 @@ class CommandInterpreter $result = new TrackingCommand($user); } break; - default: - $result = false; } Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result)); diff --git a/lib/implugin.php b/lib/implugin.php index 98fba19911..2da4fa961a 100644 --- a/lib/implugin.php +++ b/lib/implugin.php @@ -402,9 +402,8 @@ abstract class ImPlugin extends Plugin $chan = new IMChannel($this); $cmd->execute($chan); return true; - } else { - return false; } + return false; } /**