diff options
-rw-r--r-- | .rubocop_todo.yml | 5 | ||||
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 35d25c3bb4..a97947f794 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -26,11 +26,6 @@ Lint/NestedMethodDefinition: Exclude: - 'lib/bundler/graph.rb' -# Offense count: 1 -Lint/NonLocalExitFromIterator: - Exclude: - - 'lib/bundler/rubygems_integration.rb' - # Offense count: 5 Lint/RescueException: Exclude: diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 22143ec5ca..96b9101610 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -282,7 +282,7 @@ module Bundler ::Kernel.send(:define_method, :gem) do |dep, *reqs| if executables.include? File.basename(caller.first.split(":").first) - return + break end reqs.pop if reqs.last.is_a?(Hash) |