Skip to content

Commit

Permalink
Swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
warmkesselj committed Feb 12, 2025
1 parent d3020af commit d309dd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/BraintreeCard/CreditCardGraphQLBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct CreditCardGraphQLBody: Encodable {
var cardholderName: String?

init(card: BTCard) {
self.billingAddress = BillingAddress(card: card)
self.billingAddress = BillingAddress(card: card)
self.number = card.number
self.expirationMonth = card.expirationMonth
self.cvv = card.cvv
Expand All @@ -72,7 +72,8 @@ struct CreditCardGraphQLBody: Encodable {
var countryCodeNumeric: String?

init?(card: BTCard) {
let properties = [
let properties =
[
card.firstName,
card.lastName,
card.company,
Expand All @@ -85,7 +86,7 @@ struct CreditCardGraphQLBody: Encodable {
card.countryCodeAlpha2,
card.countryCodeAlpha3,
card.countryCodeNumeric
]
]

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

0 comments on commit d309dd8

Please sign in to comment.