diff --git a/ios/Classes/Options.swift b/ios/Classes/Options.swift index 08f4976e..46ecf21c 100755 --- a/ios/Classes/Options.swift +++ b/ios/Classes/Options.swift @@ -16,10 +16,8 @@ public class Options: NSObject { func parse(options: [String: Any?]) -> Options { for (key, value) in options { - if value != nil, !(value is NSNull) { - if self.responds(to: Selector(key)) { - self.setValue(value, forKey: key) - } + if !(value is NSNull), value != nil, self.responds(to: Selector(key)) { + self.setValue(value, forKey: key) } } return self