We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7cad14 commit 77365e0Copy full SHA for 77365e0
lib/cocoapods-core/podfile/target_definition.rb
@@ -174,7 +174,7 @@ def abstract=(abstract)
174
# @return [String] the inheritance mode for this target definition.
175
#
176
def inheritance
177
- get_hash_value('inheritance', 'complete')
+ get_hash_value('inheritance') || 'complete'
178
end
179
180
# Sets the inheritance mode for this target definition.
@@ -907,7 +907,7 @@ def get_hash_value(key, base_value = nil)
907
unless HASH_KEYS.include?(key)
908
raise StandardError, "Unsupported hash key `#{key}`"
909
910
- internal_hash[key] = base_value if internal_hash[key].nil?
+ internal_hash[key] ||= base_value unless base_value.nil?
911
internal_hash[key]
912
913
0 commit comments