From: Michael Date: Tue, 21 Mar 2023 06:42:29 +0000 (+0000) Subject: Unneeded variable removed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=772823273757630df62de3882797742016ce467f;p=friendica.git Unneeded variable removed --- 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 ?? ''; } /**