Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
muzahidul-opti committed Nov 23, 2024
1 parent 89d2b7b commit eb7e292
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/ODP/OdpManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public class OdpManager {

var identifiersUpdated = identifiers

if identifiers[Constants.ODP.keyForVuid] == nil, let _vuid = vuid, VuidManager.isVuid(_vuid) {
if identifiers[Constants.ODP.keyForVuid] == nil, let _vuid = vuid {
identifiersUpdated[Constants.ODP.keyForVuid] = _vuid
}

Expand Down
1 change: 1 addition & 0 deletions Sources/Optimizely/OptimizelyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ open class OptimizelyClient: NSObject {
self.decisionService = HandlerRegistryService.shared.injectDecisionService(sdkKey: self.sdkKey)
self.notificationCenter = HandlerRegistryService.shared.injectNotificationCenter(sdkKey: self.sdkKey)
if vuid != nil {
self.odpManager.vuid = vuid
self.odpManager.sendInitializedEvent()
}
logger.d("SDK Version: \(version)")
Expand Down
1 change: 0 additions & 1 deletion Sources/Optimizely/VuidManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class VuidManager {
private var _vuid: String = ""
private(set) var enable: Bool = false
let logger = OPTLoggerFactory.getLogger()
let lock = DispatchQueue(label: "vuid-manager")
// a single vuid should be shared for all SDK instances
public static let shared = VuidManager()

Expand Down

0 comments on commit eb7e292

Please sign in to comment.