lib/khalti/request_helper.rb in khalti-0.2.0 vs lib/khalti/request_helper.rb in khalti-0.2.1

- old
+ new

@@ -35,11 +35,10 @@ raise Errors::BlankError, 'Ensure KHALTI_SECRET_KEY is not blank.' end def validate_content_type(content_type) return if content_type == 'application/json' - raise Errors::InvalidResponseError, - 'Content-type is not application/json.' + raise Errors::InvalidResponseError, 'Content-type is not application/json.' end def extract_response(res) case res when Net::HTTPSuccess