Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 345 Bytes

force_try.md

File metadata and controls

23 lines (14 loc) · 345 Bytes

Pattern: Use of try!

Issue: -

Description

Force tries should be avoided.

Examples of correct code:

func a() throws {}; do { try a() } catch {}

Examples of incorrect code:

func a() throws {}; try! a()

Further Reading