lib/braintree/address_gateway.rb in braintree-2.16.0 vs lib/braintree/address_gateway.rb in braintree-2.17.0

- old
+ new

@@ -29,10 +29,10 @@ SuccessfulResult.new end def find(customer_or_customer_id, address_id) customer_id = _determine_customer_id(customer_or_customer_id) - raise ArgumentError if address_id.nil? || address_id.strip.to_s == "" + raise ArgumentError if address_id.nil? || address_id.to_s.strip == "" response = @config.http.get("/customers/#{customer_id}/addresses/#{address_id}") Address._new(@gateway, response[:address]) rescue NotFoundError raise NotFoundError, "address for customer #{customer_id.inspect} with id #{address_id.inspect} not found" end