mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 15:44:17 +02:00
replace & with new()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user