Skip to content

Commit

Permalink
Change to using decodingObjectOf
Browse files Browse the repository at this point in the history
  • Loading branch information
THISISDINOSAUR committed Apr 11, 2024
1 parent a2d4fc7 commit 3291441
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public class DataBrokerProtectionSchedulerErrorCollection: NSObject, NSSecureCod
}

public required init?(coder: NSCoder) {
oneTimeError = coder.decodeObject(forKey: NSSecureCodingKeys.oneTimeError) as? Error
operationErrors = coder.decodeObject(forKey: NSSecureCodingKeys.operationErrors) as? [Error]
oneTimeError = coder.decodeObject(of: NSError.self, forKey: NSSecureCodingKeys.oneTimeError)
operationErrors = coder.decodeArrayOfObjects(ofClass: NSError.self, forKey: NSSecureCodingKeys.operationErrors)
}
}

Expand Down

0 comments on commit 3291441

Please sign in to comment.