Skip to content

Commit

Permalink
No need to call .dup since Array#+ doesn't mutate the original array
Browse files Browse the repository at this point in the history
  • Loading branch information
mcls committed Jan 28, 2016
1 parent 51f96cd commit 0c6a09a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/braintree/customer.rb
Expand Up @@ -126,12 +126,12 @@ def delete
# Returns the customer's payment methods
def payment_methods
@credit_cards +
@paypal_accounts.dup +
@apple_pay_cards.dup +
@coinbase_accounts.dup +
@android_pay_cards.dup +
@amex_express_checkout_cards.dup +
@venmo_accounts.dup
@paypal_accounts +
@apple_pay_cards +
@coinbase_accounts +
@android_pay_cards +
@amex_express_checkout_cards +
@venmo_accounts
end

def inspect # :nodoc:
Expand Down

0 comments on commit 0c6a09a

Please sign in to comment.