diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index 76e3043b7a6..12921c6ca24 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -374,8 +374,7 @@ def resolve_path(path) def prints_major_deprecations? require "bundler" - deprecation_release = Bundler::VERSION.split(".").drop(1).include?("99") - return false if !deprecation_release && !Bundler.settings[:major_deprecations] + return false unless Bundler.settings[:major_deprecations] require "bundler/deprecate" return false if Bundler::Deprecate.skip true