Commit 7e5e4b33 authored by Marius Rackwitz's avatar Marius Rackwitz

[Refactor] Use || instead of explicit branching

parent bdd89071
...@@ -118,9 +118,8 @@ module Pod ...@@ -118,9 +118,8 @@ module Pod
target_basename = target.product_basename target_basename = target.product_basename
new_product_ref = frameworks.files.find { |f| f.path == target.product_name } || new_product_ref = frameworks.files.find { |f| f.path == target.product_name } ||
frameworks.new_product_ref_for_target(target_basename, target.product_type) frameworks.new_product_ref_for_target(target_basename, target.product_type)
unless build_file = build_phase.build_file(new_product_ref) build_file = build_phase.build_file(new_product_ref) ||
build_file = build_phase.add_file_reference(new_product_ref) build_phase.add_file_reference(new_product_ref)
end
if target.requires_frameworks? if target.requires_frameworks?
# Weak link the aggregate target's product, because as it contains # Weak link the aggregate target's product, because as it contains
# no symbols, it isn't copied into the app bundle. dyld will so # no symbols, it isn't copied into the app bundle. dyld will so
......
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