Commit 5e11f9c8 authored by Ivar Derksen's avatar Ivar Derksen
Browse files

Refactor: re-use issueEntry instance when returning intermediateIssue

parent 16f92137
......@@ -92,10 +92,8 @@ func runHealthCheck(check HealthCheck) *issueEntry {
// Generate warning if health check was unstable.
if intermediateIssue != nil {
return &issueEntry{
issueType: warning,
message: fmt.Sprintf("Unstable health check: %s", intermediateIssue.message),
intermediateIssue.issueType = warning
return intermediateIssue
return nil
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment