From e6c84d05d0cfb9f20725716b93439746c697ce41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 27 Oct 2023 20:44:45 +0200 Subject: [PATCH] [rubygems/rubygems] Remove now unnecessary dup https://github.com/rubygems/rubygems/commit/3c1a6a7dfa --- lib/bundler/dsl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 27839e30a0..d0cee320ca 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -46,7 +46,7 @@ module Bundler @gemfile = expanded_gemfile_path @gemfiles << expanded_gemfile_path contents ||= Bundler.read_file(@gemfile.to_s) - instance_eval(contents.dup, gemfile.to_s, 1) + instance_eval(contents, gemfile.to_s, 1) rescue Exception => e # rubocop:disable Lint/RescueException message = "There was an error " \ "#{e.is_a?(GemfileEvalError) ? "evaluating" : "parsing"} " \