Skip to content

Commit

Permalink
Use case equality (threequals) instead of match? to satisfy RBS 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jun 6, 2024
1 parent dd3ab1b commit a756a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/x/errors/http_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def message_from_json_response(response)
end

def json?(response)
JSON_CONTENT_TYPE_REGEXP.match?(response["content-type"])
JSON_CONTENT_TYPE_REGEXP === response["content-type"]
end
end
end
2 changes: 1 addition & 1 deletion lib/x/response_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def error_class(response)
end

def json?(response)
JSON_CONTENT_TYPE_REGEXP.match?(response["content-type"])
JSON_CONTENT_TYPE_REGEXP === response["content-type"]
end
end
end

0 comments on commit a756a11

Please sign in to comment.