Commit 6aaf5edc authored by Fabio Pelosin's avatar Fabio Pelosin

[Specification] Check if a value is nil in `pltf_first_defined_attr_reader'.

parent 396effc4
...@@ -105,7 +105,7 @@ module Pod ...@@ -105,7 +105,7 @@ module Pod
define_method(attr) do define_method(attr) do
active_plaform_check active_plaform_check
ivar_value = instance_variable_get("@#{attr}")[active_platform] ivar_value = instance_variable_get("@#{attr}")[active_platform]
ivar_value || (@parent.send(attr) if @parent) ivar_value.nil? ? (@parent.send(attr) if @parent) : ivar_value
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment