replace & with new()

This commit is contained in:
2026-07-13 13:33:40 +02:00
parent f4fe1aa875
commit 6cae5ddef9
16 changed files with 49 additions and 51 deletions

View File

@@ -52,7 +52,7 @@ func getHealthReport(conf *cfg.Config) (*HealthReport, error) {
return nil, err
}
report := HealthReport{}
report := new(HealthReport{})
// FIXME: use this once jsonv2 is no more experimental
//
@@ -67,5 +67,5 @@ func getHealthReport(conf *cfg.Config) (*HealthReport, error) {
return nil, fmt.Errorf("failed to unmarshal healthreport response: %w", err)
}
return &report, nil
return report, nil
}