Skip to content

Commit

Permalink
chore: fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Nov 28, 2024
1 parent ec75133 commit 9ca2d2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ func (t *ChangeSummary) Merge(b ChangeSummary) {
}

func (t *ChangeSummary) Totals() (ignored, orphaned, errors int) {
if t == nil {
return 0, 0, 0
}
for _, v := range t.Ignored {
ignored += v
}
Expand Down

0 comments on commit 9ca2d2a

Please sign in to comment.