diff options
author | Victor Koronen <koronen@kth.se> | 2015-08-08 16:24:59 +0200 |
---|---|---|
committer | Victor Koronen <koronen@kth.se> | 2015-08-14 12:29:43 +0200 |
commit | e57b712070d7b247cd2d411697780e5660a38098 (patch) | |
tree | 3c6ab46b397f31ba593382e5cac52877a02a1041 | |
parent | 95bb960606a60a45c8acbf91db031b02d77bf5a6 (diff) | |
download | bundler-e57b712070d7b247cd2d411697780e5660a38098.tar.gz |
Fix Style/ParenthesesAroundCondition
-rw-r--r-- | .rubocop_todo.yml | 6 | ||||
-rw-r--r-- | lib/bundler/cli/install.rb | 4 | ||||
-rw-r--r-- | lib/bundler/runtime.rb | 2 |
3 files changed, 3 insertions, 9 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2649b381..d9facda0 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -289,12 +289,6 @@ Style/OneLineConditional: Style/OpMethod: Enabled: false -# Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: AllowSafeAssignment. -Style/ParenthesesAroundCondition: - Enabled: false - # Offense count: 63 # Cop supports --auto-correct. # Configuration parameters: PreferredDelimiters. diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index 2245f958..1f5337d4 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -50,8 +50,8 @@ module Bundler exit 1 end - if (options["trust-policy"]) - unless (Bundler.rubygems.security_policies.keys.include?(options["trust-policy"])) + if options["trust-policy"] + unless Bundler.rubygems.security_policies.keys.include?(options["trust-policy"]) Bundler.ui.error "Rubygems doesn't know about trust policy '#{options["trust-policy"]}'. " \ "The known policies are: #{Bundler.rubygems.security_policies.keys.join(", ")}." exit 1 diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index 28767af5..5f340a3e 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -61,7 +61,7 @@ module Bundler @definition.dependencies.each do |dep| # Skip the dependency if it is not in any of the requested # groups - next unless ((dep.groups & groups).any? && dep.current_platform?) + next unless (dep.groups & groups).any? && dep.current_platform? required_file = nil |