Skip to content

Commit 093e1e8

Browse files
author
Evan Greer
committed
updates method naming
1 parent 73e7a92 commit 093e1e8

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 createAnonymousUserIfCriteriaMatched(_ 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+
createAnonymousUserIfCriteriaMatched(criteriaId)
228228
}
229229
}
230230

0 commit comments

Comments
 (0)