Skip to content

Commit

Permalink
Update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
warmkesselj committed Feb 12, 2025
1 parent 435508c commit d3020af
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Sources/BraintreeCard/CreditCardGraphQLBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,18 @@ struct CreditCardGraphQLBody: Encodable {

init?(card: BTCard) {
let properties = [
card.firstName, card.lastName, card.company, card.postalCode,
card.streetAddress, card.extendedAddress, card.locality, card.region,
card.countryName, card.countryCodeAlpha2, card.countryCodeAlpha3, card.countryCodeNumeric
card.firstName,
card.lastName,
card.company,
card.postalCode,
card.streetAddress,
card.extendedAddress,
card.locality,
card.region,
card.countryName,
card.countryCodeAlpha2,
card.countryCodeAlpha3,
card.countryCodeNumeric
]

if properties.allSatisfy({ $0?.isEmpty ?? true }) {
Expand Down

0 comments on commit d3020af

Please sign in to comment.