Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sufyankhanrao committed Jul 4, 2024
1 parent 36c866e commit 844ff10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/apimatic-core/response_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def apply_xml_deserializer(response)
# Applies deserializer to the response.
# @param [Boolean] should_symbolize_hash Flag to symbolize the hash during response deserialization.
def apply_deserializer(response, should_symbolize_hash)
return if response.raw_body.nil? or response.raw_body.to_s.strip.empty?
return if response.raw_body.nil? || response.raw_body.to_s.strip.empty?

return apply_xml_deserializer(response) if @is_xml_response
return response.raw_body if @deserializer.nil?
Expand Down
2 changes: 1 addition & 1 deletion lib/apimatic-core/utilities/api_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def self.valid_type?(value, type_callable, is_model_hash: false, is_inner_model_
# @return [Hash, Array, nil] The parsed JSON object, or nil if the input string is nil.
# @raise [TypeError] if the server responds with invalid JSON and primitive type parsing is not allowed.
def self.json_deserialize(json, should_symbolize = false, allow_primitive_type_parsing = false)
return if json.nil? or json.to_s.strip.empty?
return if json.nil? || json.to_s.strip.empty?

begin
JSON.parse(json, symbolize_names: should_symbolize)
Expand Down

0 comments on commit 844ff10

Please sign in to comment.