Commit 1a525c59 authored by Boris Bügling's avatar Boris Bügling

Simplify `should_build?`

parent 649a1350
...@@ -39,9 +39,7 @@ module Pod ...@@ -39,9 +39,7 @@ module Pod
# A target should not be build if it has no source files. # A target should not be build if it has no source files.
# #
def should_build? def should_build?
file_accessors.map do |fa| !file_accessors.flat_map(&:source_files).empty?
fa.source_files.count
end.inject(0, :+) > 0
end end
# @return [Array<Specification::Consumer>] the specification consumers for # @return [Array<Specification::Consumer>] the specification consumers for
......
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