Skip to content

Commit

Permalink
dev: add comment to clarify using empty issues slice (#4884)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Jul 24, 2024
1 parent e8300b7 commit d2b439f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/lint/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func (r *Runner) processIssues(issues []result.Issue, sw *timeutils.Stopwatch, s
issues = newIssues
}

// This is required by JSON serialization
if issues == nil {
issues = []result.Issue{}
}
Expand Down

0 comments on commit d2b439f

Please sign in to comment.