Skip to content

Commit

Permalink
Make path_obj & @path_obj the same object again
Browse files Browse the repository at this point in the history
Fixes 1cd87f3
  • Loading branch information
ojab committed Apr 5, 2018
1 parent 7c48d48 commit 303c231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bootsnap/load_path_cache/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 303c231

Please sign in to comment.