From 303c23169ba1671f1d79cf6573b21599876138b4 Mon Sep 17 00:00:00 2001 From: ojab Date: Thu, 5 Apr 2018 17:49:34 +0000 Subject: [PATCH] Make `path_obj` & `@path_obj` the same object again Fixes 1cd87f36013181b0ca6ed87b81784819dcbd0dd3 --- lib/bootsnap/load_path_cache/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootsnap/load_path_cache/cache.rb b/lib/bootsnap/load_path_cache/cache.rb index c1e1dc7b..a1eab1bb 100644 --- a/lib/bootsnap/load_path_cache/cache.rb +++ b/lib/bootsnap/load_path_cache/cache.rb @@ -9,7 +9,7 @@ def initialize(store, path_obj, development_mode: false) @development_mode = development_mode @store = store @mutex = defined?(::Mutex) ? ::Mutex.new : ::Thread::Mutex.new # TODO: Remove once Ruby 2.2 support is dropped. - @path_obj = path_obj.map { |f| File.exist?(f) ? File.realpath(f) : f } + @path_obj = path_obj.map! { |f| File.exist?(f) ? File.realpath(f) : f } @has_relative_paths = nil reinitialize end