Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
al-yanna committed Dec 4, 2024
1 parent 62cf884 commit a05802e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/graphql-hive/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def build_request(uri, body)

def extract_error_details(response)
parsed_body = JSON.parse(response.body)
return unless parsed_body.is_a?(Hash) && parsed_body['errors'].is_a?(Array)
parsed_body['errors'].map { |error| "path: #{error['path']}, message: #{error['message']}" }.join(", ")
return unless parsed_body.is_a?(Hash) && parsed_body["errors"].is_a?(Array)
parsed_body["errors"].map { |error| "path: #{error["path"]}, message: #{error["message"]}" }.join(", ")
rescue JSON::ParserError
nil
end
Expand Down

0 comments on commit a05802e

Please sign in to comment.