Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: fn ⌃ ⌥ <[email protected]>
  • Loading branch information
carlocab and FnControlOption authored Nov 18, 2021
1 parent a0167a1 commit 819d12a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/tests/formulae_dependents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ def install_dependent(dependent, testable_dependents, args:, build_from_source:
dependent,
cache_key: "test-bot-link",
) do |dep_dependent, dependency|
Dependency.prune if dependency.build? && !dependency.test?
Dependency.prune if dependency.test? && dep_dependent != dependent
dependency_f = dependency.to_formula
next if !dependency.build? && !dependency.test?
next if dependency.test? && dep_dependent == dependent

Dependency.prune
Dependency.skip if dependency_f.keg_only?
end.map(&:to_formula)

Expand Down

0 comments on commit 819d12a

Please sign in to comment.