lib/api_matchers/headers/base.rb in api_matchers-0.5.0 vs lib/api_matchers/headers/base.rb in api_matchers-0.5.1
- old
+ new
@@ -14,12 +14,10 @@
end
def content_type_response
if @setup.header_method.present? and @setup.header_content_type_key.present?
headers = @actual.send(@setup.header_method)
- if headers.present?
- headers[@setup.header_content_type_key] || headers
- end
+ headers[@setup.header_content_type_key] || headers if headers.present?
else
@actual
end
end