Fix Style/Next.
This commit is contained in:
parent
4064084c58
commit
23dacc7525
@ -273,14 +273,6 @@ Style/MutableConstant:
|
|||||||
- 'Homebrew/tab.rb'
|
- 'Homebrew/tab.rb'
|
||||||
- 'Homebrew/tap.rb'
|
- 'Homebrew/tap.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
|
||||||
# SupportedStyles: skip_modifier_ifs, always
|
|
||||||
Style/Next:
|
|
||||||
Exclude:
|
|
||||||
- 'Homebrew/dev-cmd/test-bot.rb'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/NumericLiterals:
|
Style/NumericLiterals:
|
||||||
|
|||||||
@ -563,11 +563,10 @@ module Homebrew
|
|||||||
|
|
||||||
(installed & dependencies).each do |installed_dependency|
|
(installed & dependencies).each do |installed_dependency|
|
||||||
installed_dependency_formula = Formulary.factory(installed_dependency)
|
installed_dependency_formula = Formulary.factory(installed_dependency)
|
||||||
if installed_dependency_formula.installed? &&
|
next unless installed_dependency_formula.installed?
|
||||||
!installed_dependency_formula.keg_only? &&
|
next if installed_dependency_formula.keg_only?
|
||||||
!installed_dependency_formula.linked_keg.exist?
|
next if installed_dependency_formula.linked_keg.exist?
|
||||||
test "brew", "link", installed_dependency
|
test "brew", "link", installed_dependency
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
dependencies -= installed
|
dependencies -= installed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user