Skip to content

Commit

Permalink
refactor: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackfaded committed Aug 30, 2024
1 parent 110182d commit cf76ba0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/PCP-server-Ruby-SDK/endpoints/base_api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cf76ba0

Please sign in to comment.