You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should not be a failable initializer as the method throws already.
In case there actually is a case where it could NOT throw and still return nil, this should be documented somewhere I guess.
It definitely shouldn't be failable. The doc comment for the Obj-C method says that if it returns nil, the error is populated (meaning it can't return nil without throwing an error). And the implementation of the Swift SDK method can't ever return nil.
I've submitted PR #10435 for this, though I'm not sure if it's going to be accepted since I know the SDK overlays are supposed to be maintained by the respective Apple SDK teams.
Environment
macOS 10.12
Additional Detail from JIRA
md5: 20fe292c9d203212cad1b36b6becae93
Issue Description:
This should not be a failable initializer as the method throws already.
In case there actually is a case where it could NOT throw and still return nil, this should be documented somewhere I guess.
The text was updated successfully, but these errors were encountered: