Skip to content

Commit

Permalink
fixes off by one line issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brianberlin committed Oct 2, 2023
1 parent 7bd86f0 commit eb8320d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/coverage_reporter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ defmodule CoverageReporter do
|> String.split(",")
|> Enum.map(&String.to_integer(&1))

line_number = line_number - 1

if count == 0 do
:ets.insert(table, {{path, line_number}, false})
else
Expand Down

0 comments on commit eb8320d

Please sign in to comment.