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
While this is related to #70, it's a bit different since we don't need to decide what "simple" means. Implicit returns are only allowed on single-expression closures.
Although it's not always easy to determine if something is a single expression or not. It's not exactly directly determined by number of lines or presence of semicolons.
From raywenderlich.com Swift Style Guide
For single-expression closures where the context is clear, use implicit returns:
The text was updated successfully, but these errors were encountered: