Changes LoggedError.error from Swift.Error to NSError

LoggedError.error is always an NSError anyways, so we can now avoid redundant casting.
This commit is contained in:
Riley Testut
2023-01-24 13:39:44 -06:00
parent 7aed564d73
commit e2df5a46e6

View File

@@ -91,7 +91,7 @@ public extension LoggedError
return app
}
var error: Error {
var error: NSError {
let nsError = NSError(domain: self.domain, code: Int(self.code), userInfo: self.userInfo)
return nsError
}