From b034a3df6872fd38adf924b9f9f74ac245302f95 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 17 Jan 2025 19:39:27 +0900 Subject: [PATCH] bundled_gems_spec.rb: Remove useless `map` `Dir.[]` returns list of strings, `map(&:to_s)` does nothing. --- spec/bundled_gems_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bundled_gems_spec.rb b/spec/bundled_gems_spec.rb index c362881850..8014a48223 100644 --- a/spec/bundled_gems_spec.rb +++ b/spec/bundled_gems_spec.rb @@ -31,7 +31,7 @@ RSpec.configure do |config| FileUtils.cp_r Spec::Path.pristine_system_gem_path, Spec::Path.system_gem_path FileUtils.mkdir_p Spec::Path.base_system_gem_path.join("gems") %w[sinatra rack tilt rack-protection rack-session rack-test mustermann base64 logger compact_index].each do |gem| - path = Dir[File.expand_path("../.bundle/gems/#{gem}-*", __dir__)].map(&:to_s).first + path, = Dir[File.expand_path("../.bundle/gems/#{gem}-*", __dir__)] FileUtils.cp_r path, Spec::Path.base_system_gem_path.join("gems") end