Skip to content

Commit 4562f38

Browse files
committed
Implement copilot reviews
1 parent 4b359d5 commit 4562f38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Implementation/Events/BatchEventBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class BatchEventBuilder {
110110
let data = try? JSONEncoder().encode(batchEvent)
111111
let eventForDispatch = EventForDispatch(url: nil, body: data ?? Data(), region: eventRegion)
112112

113-
return eventForDispatch.body
113+
return eventForDispatch
114114
}
115115

116116
// MARK: - Event Tags

Sources/Optimizely+Decide/OptimizelyUserContext+ObjC.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ import Foundation
3333
}
3434

3535
public init(optimizely: OptimizelyClient, userId: String, attributes: [String: Any]? = nil, region: String = "US") {
36-
userContext = OptimizelyUserContext(optimizely: optimizely, userId: userId, attributes: attributes)
36+
userContext = OptimizelyUserContext(optimizely: optimizely, userId: userId, attributes: attributes ,region: region)
3737
}
38-
38+
3939
public init(user: OptimizelyUserContext, region: String = "US") {
4040
self.userContext = user
4141
}

0 commit comments

Comments
 (0)