(REF) Tidy-up unreachable return
authorBradley Taylor <hello@brad-taylor.co.uk>
Wed, 11 Jan 2023 18:53:38 +0000 (18:53 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Wed, 11 Jan 2023 18:53:38 +0000 (18:53 +0000)
CRM/Utils/REST.php

index 9a2f7ee25ea66cbf467ef3f6a82a01e9def0e324..4c6edc9c660656111c4d874a14ba87fd061f7ba5 100644 (file)
@@ -133,7 +133,6 @@ class CRM_Utils_REST {
       if (!empty($requestParams['prettyprint'])) {
         // Don't set content-type header for api explorer output
         return json_encode(array_merge($result), JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE);
-        return self::jsonFormated(array_merge($result));
       }
       CRM_Utils_System::setHttpHeader('Content-Type', 'application/json');
       return json_encode(array_merge($result));