From 8b9195e3e3506d576b39a23ca646c260dfacc808 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 1 May 2024 16:23:08 +0200 Subject: chore(gonf): fix errcheck and shadow errors --- pkg/services.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pkg/services.go') diff --git a/pkg/services.go b/pkg/services.go index 7e4f114..319599e 100644 --- a/pkg/services.go +++ b/pkg/services.go @@ -2,18 +2,14 @@ package gonf import "log/slog" -// ----- Globals --------------------------------------------------------------- var services []*ServicePromise -// service management function var serviceFunction func(string, string) (Status, error) -// ----- Init ------------------------------------------------------------------ func init() { services = make([]*ServicePromise, 0) } -// ----- Public ---------------------------------------------------------------- func SetServiceFunction(f func(string, string) (Status, error)) { serviceFunction = f } @@ -82,7 +78,6 @@ func (s ServicePromise) Status() Status { return s.status } -// ----- Internal -------------------------------------------------------------- func resolveServices() (status Status) { status = KEPT for _, c := range services { -- cgit v1.2.3