Skip to content

Commit

Permalink
Properly default branch counts to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Sep 13, 2024
1 parent 8279be2 commit ffd1aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coverage_comment/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def _make_coverage_info(data: dict) -> CoverageInfo:
),
missing_lines=data["missing_lines"],
excluded_lines=data["excluded_lines"],
num_branches=data.get("num_branches"),
num_partial_branches=data.get("num_partial_branches"),
num_branches=data.get("num_branches", 0),
num_partial_branches=data.get("num_partial_branches", 0),
covered_branches=data.get("covered_branches", 0),
missing_branches=data.get("missing_branches", 0),
)
Expand Down

0 comments on commit ffd1aa1

Please sign in to comment.