diff --git a/Mirror/Weaver/Processors/CommandProcessor.cs b/Mirror/Weaver/Processors/CommandProcessor.cs index d95f9ad59..4e19631df 100644 --- a/Mirror/Weaver/Processors/CommandProcessor.cs +++ b/Mirror/Weaver/Processors/CommandProcessor.cs @@ -156,16 +156,9 @@ public static bool ProcessMethodsValidateCommand(TypeDefinition td, MethodDefini return false; } - if (!NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Command")) - { - return false; - } - - if (!NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Command")) - { - return false; - } - return true; + // validate + return NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Command") && + NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Command"); } } } \ No newline at end of file