changed order of condition to make positive case first

This commit is contained in:
Ruslan Alikhamov
2023-08-26 01:03:49 -04:00
committed by GitHub
parent 973609e141
commit 6b6d6c2730

View File

@@ -113,12 +113,12 @@ public struct Variable: Equatable, Resolvable {
} else if let value = context as? DynamicMemberLookup {
return value[dynamicMember: bit]
} else if let object = context as? NSObject { // NSKeyValueCoding
#if !canImport(ObjectiveC)
return nil
#else
#if canImport(ObjectiveC)
if object.responds(to: Selector(bit)) {
return object.value(forKey: bit)
}
#else
return nil
#endif
} else if let value = context {
return Mirror(reflecting: value).getValue(for: bit)