Skip to content

Commit

Permalink
[raven] use File.open in LineCache (#2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic authored Mar 6, 2025
1 parent ca4a6d2 commit f11a7aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sentry-raven/lib/raven/linecache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def valid_path?(path)

def getlines(path)
@cache[path] ||= begin
IO.readlines(path)
rescue
nil
File.open(path, "r", &:readlines)
rescue
nil
end
end

Expand Down

0 comments on commit f11a7aa

Please sign in to comment.