From 19d6f3757b582ef108d1f0c41ed4f2a9301460b1 Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 9 Jan 2026 00:42:07 +0800 Subject: [PATCH] fix(monitor): remove unnecssary return type --- internal/health/monitor/monitor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/health/monitor/monitor.go b/internal/health/monitor/monitor.go index 64bd4f62..93875115 100644 --- a/internal/health/monitor/monitor.go +++ b/internal/health/monitor/monitor.go @@ -42,7 +42,7 @@ type ( var ErrNegativeInterval = gperr.New("negative interval") -func (mon *monitor) init(u *url.URL, cfg types.HealthCheckConfig, healthCheckFunc HealthCheckFunc) *monitor { +func (mon *monitor) init(u *url.URL, cfg types.HealthCheckConfig, healthCheckFunc HealthCheckFunc) { if state := config.WorkingState.Load(); state != nil { cfg.ApplyDefaults(state.Value().Defaults.HealthCheck) } else { @@ -60,7 +60,6 @@ func (mon *monitor) init(u *url.URL, cfg types.HealthCheckConfig, healthCheckFun } else { mon.url.Store(u) } - return nil } func (mon *monitor) Context() context.Context {