diff --git a/plugins/CorePluginsAdmin/Marketplace.php b/plugins/CorePluginsAdmin/Marketplace.php
index 6eb812a75bbbb38f91fb45eaf4053b69591af14d..9964200e215467f2cbf92be5ace5c63d0045748d 100644
--- a/plugins/CorePluginsAdmin/Marketplace.php
+++ b/plugins/CorePluginsAdmin/Marketplace.php
@@ -78,10 +78,8 @@ class Marketplace
         try {
             if ($themesOnly) {
                 $pluginsHavingUpdate = $this->client->getInfoOfThemesHavingUpdate($loadedPlugins);
-                return $pluginsHavingUpdate;
             } else {
                 $pluginsHavingUpdate = $this->client->getInfoOfPluginsHavingUpdate($loadedPlugins);
-                return $pluginsHavingUpdate;
             }
 
         } catch (\Exception $e) {