lib/raven/linecache.rb in sentry-raven-0.15.2 vs lib/raven/linecache.rb in sentry-raven-0.15.3

- old
+ new

@@ -5,11 +5,11 @@ class << self CACHE = {} def is_valid_file(path) lines = getlines(path) - return lines != nil + !lines.nil? end def getlines(path) CACHE[path] ||= begin IO.readlines(path) @@ -19,10 +19,10 @@ end def getline(path, n) return nil if n < 1 lines = getlines(path) - return nil if lines == nil + return nil if lines.nil? lines[n - 1] end end end end