From aa9a8f4ba846b630d813baf2df1f59b2f994ad1c Mon Sep 17 00:00:00 2001 From: michael wood Date: Tue, 10 Sep 2024 21:39:27 -0400 Subject: [PATCH] clean up --- cmd/launcher/svc_config_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/launcher/svc_config_windows.go b/cmd/launcher/svc_config_windows.go index 845bb7903..323ef5f30 100644 --- a/cmd/launcher/svc_config_windows.go +++ b/cmd/launcher/svc_config_windows.go @@ -225,7 +225,7 @@ func checkRecoveryActions(ctx context.Context, logger *slog.Logger, service *mgr } // If the recovery actions are already set, we don't need to do anything - if len(curRecoveryActions) == len(recoveryActions) { // nothing to do, the flag was already set correctly + if curRecoveryActions != nil && len(curRecoveryActions) == len(recoveryActions) { return }