Skip to content

Commit 5a7530c

Browse files
committed
fix conflicts
1 parent ec2fa3b commit 5a7530c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

OptimizelySDK/Implementation/DefaultDatafileHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class DefaultDatafileHandler : OPTDatafileHandler {
107107
} else if let response = response as? HTTPURLResponse {
108108
if response.statusCode == 200 {
109109
let data = self.getResponseData(sdkKey: sdkKey, response: response, url: url)
110-
result = Result.success(data)
110+
result = .success(data)
111111
}
112112
else if response.statusCode == 304 {
113113
self.logger?.log(level: .debug, message: "The datafile was not modified and won't be downloaded again")

OptimizelySDK/Optimizely/OptimizelyManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ open class OptimizelyManager: NSObject {
8787
decisionService: DefaultDecisionService(userProfileService: userProfileService),
8888
notificationCenter: DefaultNotificationCenter())
8989

90-
logger.i("SDK Version: \(Utils.getSDKVersion())")
90+
logger.i("SDK Version: \(Utils.sdkVersion)")
9191
}
9292

9393
/// Start Optimizely SDK (Asynchronous)

OptimizelySDK/Utils/Utils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Utils {
2222
// - Bundle(identifier: bundleIdentifier) works ok consistently
2323
// - CocoaPods uses its own bundle identifier, so let it use Bundle(for:) as a fallback
2424
// CocoaPods copies "s.version" in podspec to "CFBundleShortVersionString" in its own Info.plist file
25-
static var sdkVersion:String = {
25+
static var sdkVersion: String = {
2626
let bundle = Bundle(identifier: "com.optimizely.OptimizelySwiftSDK") ?? Bundle(for: OptimizelyManager.self)
2727
guard let version = bundle.infoDictionary!["CFBundleShortVersionString"] as? String else {
2828
return "1.0.0"

0 commit comments

Comments
 (0)