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
[Tests] NFC: Remove overload of GeneralizedTime.init(_:) (#7986)
### Motivation:
`swift-certificates` now implements initializer that accepts `Date` and
doesn't throw which means this method is redundant but also incorrect
because overloading only on `throws` is ambiguous in most cases due to
throws checking not being part of the expression checking.
Uses of this overload type-checked only because it was always preferred
before due to old type-checker hacks that we are trying to remove.
### Modifications:
- Removes `GeneralizedTime.init(_:) throws` that was added before
`swift-certificates` introduced their own non-throwing version.
### Result:
No more duplicate code that is less safe than what `swift-certificates`
vends.
0 commit comments