Created
June 8, 2016 06:29
-
-
Save alexcurylo/77f2b117c60a08ed3d05994e5bcf6876 to your computer and use it in GitHub Desktop.
Guard failure diagnosis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard let keypath = dictionary["field"] as? String, | |
let rule = dictionary["rule"] as? String, | |
let comparator = FormFieldDisplayRuleComparator(rawValue: rule), | |
let value = dictionary["value"] | |
else | |
{ | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment