Convert to Swift 4.0 syntax

This commit is contained in:
Charles Magahern
2019-09-24 22:17:16 -07:00
parent 12f9b4eff0
commit 51d0faf556
8 changed files with 38 additions and 13 deletions
@@ -46,7 +46,7 @@ extension NSError
class func xionError(_ code: XIONErrorCode, userInfo: [AnyHashable: Any]?) -> NSError
{
return NSError(domain: XIONErrorDomain, code: code.rawValue, userInfo: userInfo)
return NSError(domain: XIONErrorDomain, code: code.rawValue, userInfo: userInfo as? [String : Any])
}
var xionErrorCode: XIONErrorCode