lib/appmap/util.rb in appmap-0.34.4 vs lib/appmap/util.rb in appmap-0.34.5
- old
+ new
@@ -41,10 +41,10 @@
# easier to compare across runs.
def sanitize_paths(h)
require 'hashie'
h.extend(Hashie::Extensions::DeepLocate)
keys = %i(path location)
- entries = h.deep_locate ->(k,v,o) {
+ h.deep_locate ->(k,v,o) {
next unless keys.include?(k)
fix = ->(v) {v.gsub(%r{#{Gem.dir}/gems/.*(?=lib)}, '')}
keys.each {|k| o[k] = fix.(o[k]) if o[k] }
}