From 8bb7561e65eb9cc7f799b297df89b3d3faaafab9 Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Mon, 1 Apr 2024 06:01:22 +0100 Subject: [PATCH] Removed unused variables from Mage_Api_Model_Server_Handler_Abstract (#3862) --- app/code/core/Mage/Api/Model/Server/Handler/Abstract.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php b/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php index 5ad0ad18ad8..4e9bcc0303d 100644 --- a/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php +++ b/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php @@ -285,7 +285,6 @@ public function call($sessionId, $apiPath, $args = []) } if (method_exists($model, $method)) { - $result = []; if (isset($methodInfo->arguments) && ((string)$methodInfo->arguments) == 'array') { $result = $model->$method((is_array($args) ? $args : [$args])); } elseif (!is_array($args)) { @@ -403,7 +402,6 @@ public function multiCall($sessionId, array $calls = [], $options = []) } if (method_exists($model, $method)) { - $callResult = []; if (isset($methodInfo->arguments) && ((string)$methodInfo->arguments) == 'array') { $callResult = $model->$method((is_array($args) ? $args : [$args])); } elseif (!is_array($args)) {