Commit d2a1c4a4 authored by Samuel Giddins's avatar Samuel Giddins

[Target] Clean up #static_framework? to use early returns

parent 6b66e200
......@@ -95,7 +95,9 @@ module Pod
# @return [Boolean] Whether the target should build a static framework.
#
def static_framework?
!is_a?(Pod::AggregateTarget) && specs.any? && specs.flat_map(&:root).all?(&:static_framework)
return if is_a?(Pod::AggregateTarget)
return if specs.empty?
specs.all? { |spec| spec.root.static_framework }
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