From 1196b4282693b7deeab9d94ab32c148ea4ad0cd9 Mon Sep 17 00:00:00 2001 From: Tim Huynh Date: Wed, 25 Oct 2023 09:20:05 -0500 Subject: [PATCH] Update cmd/vela-worker/register.go Co-authored-by: Jacob Floyd --- cmd/vela-worker/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/vela-worker/register.go b/cmd/vela-worker/register.go index 6b92db50..7460e84a 100644 --- a/cmd/vela-worker/register.go +++ b/cmd/vela-worker/register.go @@ -20,7 +20,7 @@ func (w *Worker) checkIn(config *library.Worker) (bool, string, error) { _, resp, err := w.VelaClient.Worker.Get(config.GetHostname()) if err != nil { respErr := fmt.Errorf("unable to retrieve worker %s from the server: %w", config.GetHostname(), err) - // in the event of server is down, the worker status will not be updated + // if server is down, the worker status will not be updated if resp == nil { return false, "", respErr }