You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that values[1] can be nil in some cases.
I changed that line to values[0] == values[1] ? nil : (values[1].to_i - values[0]) and it avoids the crash, although I'm not sure if that causes incorrect reporting.
The text was updated successfully, but these errors were encountered:
Apologies, I don't have a minimal repro for this bug, but in version
0.1.1
, I occasionally get the errorTypeError: nil can't be coerced into Integer
from this line:reverse_coverage/lib/reverse_coverage/main.rb
Line 91 in df4ca35
The issue is that
values[1]
can benil
in some cases.I changed that line to
values[0] == values[1] ? nil : (values[1].to_i - values[0])
and it avoids the crash, although I'm not sure if that causes incorrect reporting.The text was updated successfully, but these errors were encountered: