Skip to content

Commit

Permalink
fix: solve issue of type error
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOF committed Nov 1, 2023
1 parent 2514787 commit f1858cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// IdentifierForAdvertiserTracker.swift
// SabyAppleFetcher
// SabyAppleTracker
//
// Created by WOF on 2022/08/23.
//
Expand Down Expand Up @@ -81,7 +81,7 @@ private final class TrackerReflection {
instanceTracker.call(methodTrackLimitAdTracking) as? Bool
)
else {
throw IdentifierForAdvertiserFetcherError.unmatchedType
throw IdentifierForAdvertiserTrackerError.unmatchedType
}

return IdentifierForAdvertiser(
Expand All @@ -91,7 +91,7 @@ private final class TrackerReflection {
}
}

public enum IdentifierForAdvertiserFetcherError: Error {
public enum IdentifierForAdvertiserTrackerError: Error {
case unmatchedType
}

Expand Down
10 changes: 5 additions & 5 deletions Source/AppleTracker/Implement/TrackingAuthorizationFetcher.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TrackingAuthorizationFetcher.swift
// SabyAppleFetcher
// TrackingAuthorizationTracker.swift
// SabyAppleTracker
//
// Created by WOF on 2022/08/23.
//
Expand All @@ -12,7 +12,7 @@ import Foundation
import SabyAppleObjectiveCReflection
import SabyConcurrency

public final class TrackingAuthorizationFetcher: Tracker {
public final class TrackingAuthorizationTracker: Tracker {
public typealias Value = Promise<TrackingAuthorization, Error>

private let tracker: TrackerReflection
Expand Down Expand Up @@ -64,14 +64,14 @@ private final class TrackerReflection {
let code = classTracker.call(methodTrackCode) as? UInt,
let trackingAuthorization = TrackingAuthorization(rawValue: code)
else {
throw TrackingAuthorizationFetcherError.unmatchedType
throw TrackingAuthorizationTrackerError.unmatchedType
}

return trackingAuthorization
}
}

public enum TrackingAuthorizationFetcherError: Error {
public enum TrackingAuthorizationTrackerError: Error {
case unmatchedType
}

Expand Down

0 comments on commit f1858cf

Please sign in to comment.