Skip to content

Commit

Permalink
Removed the redundant use of NSData
Browse files Browse the repository at this point in the history
  • Loading branch information
Isuru-Nanayakkara authored and Artem Stepanenko committed Apr 2, 2018
1 parent 0a1f5eb commit c805d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dekoter.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Dekoter'
s.version = '0.3.0'
s.version = '0.3.1'
s.summary = "NSCoding's counterpart for Swift structs."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Dekoter/Classes/NSKeyedUnarchiver+Dekoter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public extension NSKeyedUnarchiver {
/// - Parameter data: The archived object.
/// - Returns: The object similar to the one that was previously archived.
public class func de_unarchiveObject<T: Koting>(with data: Data) -> T? {
guard let topObject = try? unarchiveTopLevelObjectWithData(data as NSData),
guard let topObject = try? unarchiveTopLevelObjectWithData(data),
let objects = topObject as? [AnyHashable: Any] else {

return nil
Expand Down

0 comments on commit c805d76

Please sign in to comment.