diff --git a/lib/bundler.rb b/lib/bundler.rb index 1157239029e..6c942baf59d 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -205,7 +205,7 @@ def user_bundle_path(dir = "home") ["BUNDLE_USER_PLUGIN", user_bundle_path.join("plugin")] else raise BundlerError, "Unknown user path requested: #{dir}" - end + end # `fallback` will already be a Pathname, but Pathname.new() is # idempotent so it's OK Pathname.new(ENV.fetch(env_var, fallback))