Skip to content

Commit ffd1aa1

Browse files
committed
Properly default branch counts to 0
1 parent 8279be2 commit ffd1aa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coverage_comment/coverage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def _make_coverage_info(data: dict) -> CoverageInfo:
161161
),
162162
missing_lines=data["missing_lines"],
163163
excluded_lines=data["excluded_lines"],
164-
num_branches=data.get("num_branches"),
165-
num_partial_branches=data.get("num_partial_branches"),
164+
num_branches=data.get("num_branches", 0),
165+
num_partial_branches=data.get("num_partial_branches", 0),
166166
covered_branches=data.get("covered_branches", 0),
167167
missing_branches=data.get("missing_branches", 0),
168168
)

0 commit comments

Comments
 (0)