Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddie Beyl committed Apr 22, 2022
1 parent 4c6332c commit 2abd531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/Attribution/AttributionPoster.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ class AttributionPoster {
}
}

@available(iOS 14.3, *)
@available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *)
func postAdServicesTokenIfNeeded() {
let latestTokenSent = latestNetworkIdAndAdvertisingIdentifierSent(network: .adServices)
guard latestTokenSent == nil else {
return
}

guard let attributionToken = attributionFetcher.adServicesToken() else {
guard let _ = attributionFetcher.adServicesToken() else {
return
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/UnitTests/Purchasing/PurchasesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class PurchasesTests: XCTestCase {

func setupPurchases(automaticCollection: Bool = false) {
Purchases.automaticAppleSearchAdsAttributionCollection = automaticCollection
if #available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *){
if #available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *) {
Purchases.automaticAdServicesAttributionTokenCollection = automaticCollection
}
self.identityManager.mockIsAnonymous = false
Expand Down

0 comments on commit 2abd531

Please sign in to comment.