lib/elastic_apm/stacktrace/frame.rb in elastic-apm-0.6.2 vs lib/elastic_apm/stacktrace/frame.rb in elastic-apm-0.7.0

- old
+ new

@@ -36,14 +36,10 @@ # rubocop:enable Metrics/AbcSize private def read_lines(path, range) - if (cached = LineCache.get(path, range)) - return cached - end - - LineCache.set(path, range, File.readlines(path)[range]) || [] + File.readlines(path)[range] rescue Errno::ENOENT [] end end end