diff options
-rw-r--r-- | .rubocop_todo.yml | 4 | ||||
-rw-r--r-- | lib/bundler/graph.rb | 2 | ||||
-rw-r--r-- | spec/support/ruby_ext.rb | 2 |
3 files changed, 2 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 26a51aff2f..fc1336bfe1 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -13,10 +13,6 @@ Lint/Eval: Lint/HandleExceptions: Enabled: false -# Offense count: 2 -Lint/LiteralInCondition: - Enabled: false - # Offense count: 1 Lint/Loop: Enabled: false diff --git a/lib/bundler/graph.rb b/lib/bundler/graph.rb index fbb5bd0248..244e3e9b99 100644 --- a/lib/bundler/graph.rb +++ b/lib/bundler/graph.rb @@ -30,7 +30,7 @@ module Bundler def _populate_relations parent_dependencies = _groups.values.to_set.flatten - while true + loop do if parent_dependencies.empty? break else diff --git a/spec/support/ruby_ext.rb b/spec/support/ruby_ext.rb index f1590a73bc..b70fb7bf82 100644 --- a/spec/support/ruby_ext.rb +++ b/spec/support/ruby_ext.rb @@ -5,7 +5,7 @@ class IO return "" if closed? || eof? # IO.select cannot be used here due to the fact that it # just does not work on windows - while true + loop do begin IO.select([self], nil, nil, select_timeout) break if eof? # stop raising :-( |