From 40d303bb7d724baba7120763b322b928f87a3965 Mon Sep 17 00:00:00 2001 From: RyanSwanson Date: Tue, 30 Jul 2024 13:19:29 -0600 Subject: [PATCH] PR Comments: nil check formatting --- config/config.go | 2 +- pkg/cli/add_vcluster_helm.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 68a5ed271..66dc6e281 100644 --- a/config/config.go +++ b/config/config.go @@ -226,7 +226,7 @@ func (c *Config) Distro() string { } func (c *Config) IsConfiguredForSleepMode() bool { - if c != nil && c.External["platform"] == nil { + if c != nil && c.External != nil && c.External["platform"] == nil { return false } diff --git a/pkg/cli/add_vcluster_helm.go b/pkg/cli/add_vcluster_helm.go index d1117a821..d702d8f3c 100644 --- a/pkg/cli/add_vcluster_helm.go +++ b/pkg/cli/add_vcluster_helm.go @@ -63,7 +63,6 @@ func AddVClusterHelm( "Yes. Wake and add now.", }, }) - if err != nil { return fmt.Errorf("failed to capture your response %w", err) }