fix(variable): checking values for nil when using mirror (#144)
This commit is contained in:
@@ -105,6 +105,10 @@ public struct Variable : Equatable, Resolvable {
|
||||
|
||||
if current == nil {
|
||||
return nil
|
||||
// mirror returns non-nil value even for nil-containing properties
|
||||
// so we have to check if its value is actually nil or not
|
||||
} else if let current = current, String(describing: current) == "nil" {
|
||||
return nil
|
||||
}
|
||||
} else {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user