Skip to content

Commit

Permalink
fix lint tool
Browse files Browse the repository at this point in the history
  • Loading branch information
scrummitch committed Aug 4, 2024
1 parent 467acbb commit c46b7e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/PushMessaging/PushMessaging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class PushMessaging {
Ortto.log().info("PushMessaging@token.set removing token")
return
}

if let existingToken = Ortto.shared.preferences.getObject(key: "token", type: PushToken.self),
existingToken == newToken {
Ortto.log().info("PushMessaging@token.set res returned no session_id")
Expand All @@ -82,7 +82,7 @@ public class PushMessaging {
token: newToken
) { (response: PushRegistrationResponse?) in
Ortto.shared.preferences.setObject(object: newToken, key: "token")

guard let sessionID = response?.sessionId else {
Ortto.log().info("PushMessaging@token.set res returned no session_id")
return
Expand Down
2 changes: 1 addition & 1 deletion Sources/SDKCore/Ortto.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class Ortto: OrttoInterface {

self.userStorage.session = sessionID
self.logger.info("Ortto@identify.success \(sessionID)")

DispatchQueue.main.async {
completion?(.success(sessionID))
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/SDKCore/data/ApiManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class ApiManager: ApiManagerInterface {
lastName: user.lastName,
acceptGDPR: user.acceptsGDPR
)

#if DEBUG
debugPrint(identityRegistration)
#endif
Expand Down

0 comments on commit c46b7e5

Please sign in to comment.