Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
evermeer committed Jan 3, 2018
1 parent 6ac3a70 commit 37fa739
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AppMessage/AppMessage.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@
PROVISIONING_PROFILE = "";
SWIFT_OBJC_BRIDGING_HEADER = "AppMessage/AppMessage-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -595,7 +595,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_OBJC_BRIDGING_HEADER = "AppMessage/AppMessage-Bridging-Header.h";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down
2 changes: 1 addition & 1 deletion Source/EVCloudData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ open class EVCloudData: EVObject {
var result: CompletionStatus?

if (notification as NSNotification).userInfo?["status"] != nil {
result = CompletionStatus(rawValue: Int(((notification as NSNotification).userInfo?["status"])! as! NSNumber))
result = CompletionStatus(rawValue: Int(truncating: ((notification as NSNotification).userInfo?["status"])! as! NSNumber))
}

return result
Expand Down
2 changes: 1 addition & 1 deletion Source/EVCloudKitDao.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ open class EVCloudKitDao {
// Or if there is a retry delay specified in the error, then use that.
if let userInfo = error?._userInfo as? NSDictionary {
if let retry = userInfo[CKErrorRetryAfterKey] as? NSNumber {
let seconds = Double(retry)
let seconds = Double(truncating: retry)
NSLog("Debug: Should retry in \(seconds) seconds. \(error?.localizedDescription ?? "")")
return .retry(afterSeconds: seconds)
}
Expand Down

0 comments on commit 37fa739

Please sign in to comment.