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
I tend to avoid the use of force-unwrapping ! and force-casting as!.
I think it's preferable to use guard let x = y as? Y else { fatalError("…") } and use an explicit and helpful error in the fatalError(…) call rather than let x = y as! Y
There are not many force-casts in the codebase so that should be pretty quick to do.
The text was updated successfully, but these errors were encountered:
I tend to avoid the use of force-unwrapping
!
and force-castingas!
.I think it's preferable to use
guard let x = y as? Y else { fatalError("…") }
and use an explicit and helpful error in thefatalError(…)
call rather thanlet x = y as! Y
There are not many force-casts in the codebase so that should be pretty quick to do.
The text was updated successfully, but these errors were encountered: