From cf76ba016f3c2755176b9cbe01dd17f970d3a202 Mon Sep 17 00:00:00 2001 From: Blackfaded Date: Fri, 30 Aug 2024 16:14:53 +0200 Subject: [PATCH] refactor: remove unused function --- lib/PCP-server-Ruby-SDK/endpoints/base_api_client.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/PCP-server-Ruby-SDK/endpoints/base_api_client.rb b/lib/PCP-server-Ruby-SDK/endpoints/base_api_client.rb index ef569a2..3aec411 100644 --- a/lib/PCP-server-Ruby-SDK/endpoints/base_api_client.rb +++ b/lib/PCP-server-Ruby-SDK/endpoints/base_api_client.rb @@ -110,18 +110,6 @@ def build_http_request(uri, request_init) req end - - def is_error_response(parsed) - return false unless parsed.is_a?(Hash) - - if parsed.key?('errorId') && !parsed['errorId'].is_a?(String) - return false - end - if parsed.key?('errors') && !parsed['errors'].is_a?(Array) - return false - end - true - end end end end