[rubygems/rubygems] Remove now unnecessary dup

https://github.com/rubygems/rubygems/commit/3c1a6a7dfa
This commit is contained in:
David Rodríguez 2023-10-27 20:44:45 +02:00 committed by Hiroshi SHIBATA
parent c7bf511cbf
commit e6c84d05d0

View File

@ -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"} " \