From 772823273757630df62de3882797742016ce467f Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Mar 2023 06:42:29 +0000 Subject: [PATCH] Unneeded variable removed --- src/Model/GServer.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 635dcfc09e..391e825c1c 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -1585,17 +1585,16 @@ class GServer */ private static function getNomadVersion(string $url): string { - $version = ''; $curlResult = DI::httpClient()->get($url . '/api/z/1.0/version', HttpClientAccept::JSON); if (!$curlResult->isSuccess() || ($curlResult->getBody() == '')) { - return $version; + return ''; } $data = json_decode($curlResult->getBody(), true); if (empty($data)) { - return $version; + return ''; } - return $data ?? $version; + return $data ?? ''; } /** -- 2.39.5