aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-21 09:21:27 +0200
committerMarkus Reiter2016-09-23 15:30:06 +0200
commit23dacc752529bcba88248899cd5b67a66499dc40 (patch)
treece6bf0f3f7444baf22abbdc8c6b48ae6963dc670 /Library
parent4064084c58138a22d234c19fc171e7d0b7a440d0 (diff)
downloadbrew-23dacc752529bcba88248899cd5b67a66499dc40.tar.bz2
Fix Style/Next.
Diffstat (limited to 'Library')
-rw-r--r--Library/.rubocop_todo.yml8
-rw-r--r--Library/Homebrew/dev-cmd/test-bot.rb9
2 files changed, 4 insertions, 13 deletions
diff --git a/Library/.rubocop_todo.yml b/Library/.rubocop_todo.yml
index dd8b34df7..3b5a91c5e 100644
--- a/Library/.rubocop_todo.yml
+++ b/Library/.rubocop_todo.yml
@@ -275,14 +275,6 @@ Style/MutableConstant:
# 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
-# Cop supports --auto-correct.
Style/NumericLiterals:
MinDigits: 6
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb
index 7a5853c48..aa3a49610 100644
--- a/Library/Homebrew/dev-cmd/test-bot.rb
+++ b/Library/Homebrew/dev-cmd/test-bot.rb
@@ -563,11 +563,10 @@ module Homebrew
(installed & dependencies).each do |installed_dependency|
installed_dependency_formula = Formulary.factory(installed_dependency)
- if installed_dependency_formula.installed? &&
- !installed_dependency_formula.keg_only? &&
- !installed_dependency_formula.linked_keg.exist?
- test "brew", "link", installed_dependency
- end
+ next unless installed_dependency_formula.installed?
+ next if installed_dependency_formula.keg_only?
+ next if installed_dependency_formula.linked_keg.exist?
+ test "brew", "link", installed_dependency
end
dependencies -= installed