Skip to content

Commit

Permalink
optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby Sudekum committed Sep 7, 2017
1 parent 35e3631 commit 1b26d5d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions MapboxDirections/MBRoute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ open class Route: NSObject, NSSecureCoding {
}
routeOptions = options

guard let decodedRouteIdentifier = decoder.decodeObject(of: NSString.self, forKey: "routeIdentifier") as String? else {
return nil
}
routeIdentifier = decodedRouteIdentifier
routeIdentifier = decoder.decodeObject(of: NSString.self, forKey: "routeIdentifier") as String?
}

open static var supportsSecureCoding = true
Expand Down

0 comments on commit 1b26d5d

Please sign in to comment.