Skip to content

Commit b137b86

Browse files
authored
Merge pull request #851 from Iterable/evan/MOB-10055
[MOB-10055] updates method naming
2 parents 73e7a92 + f7fafc8 commit b137b86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift-sdk/Internal/AnonymousUserManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class AnonymousUserManager: AnonymousUserManagerProtocol {
8686
}
8787

8888
// Creates a user after criterias met and login the user and then sync the data through track APIs
89-
private func createKnownUserIfCriteriaMatched(_ criteriaId: String) {
89+
private func createAnonymousUser(_ criteriaId: String) {
9090
var anonSessions = convertToDictionary(data: localStorage.anonymousSessions?.itbl_anon_sessions)
9191
let userId = IterableUtil.generateUUID()
9292
anonSessions[JsonKey.matchedCriteriaId] = Int(criteriaId)
@@ -224,7 +224,7 @@ public class AnonymousUserManager: AnonymousUserManagerProtocol {
224224
}
225225

226226
if let criteriaId = evaluateCriteriaAndReturnID() {
227-
createKnownUserIfCriteriaMatched(criteriaId)
227+
createAnonymousUser(criteriaId)
228228
}
229229
}
230230

0 commit comments

Comments
 (0)