From f3695fe6d157587c54a922e410903e24cec24187 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 7 May 2024 14:25:46 +0800 Subject: [PATCH] fix(lint): ignore return values of viper.BindEnv() --- internal/config/operator/new.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/config/operator/new.go b/internal/config/operator/new.go index cf992541c..836eb2c44 100644 --- a/internal/config/operator/new.go +++ b/internal/config/operator/new.go @@ -39,10 +39,10 @@ func newConfig() *Config { pflag.Parse() _ = v.BindPFlags(pflag.CommandLine) - v.BindEnv("telemetry.disabled", "DISABLE_TELEMETRY", "OB_OPERATOR_TELEMETRY_DISABLED") - v.BindEnv("telemetry.debug", "TELEMETRY_DEBUG", "OB_OPERATOR_TELEMETRY_DEBUG") - v.BindEnv("telemetry.host", "TELEMETRY_REPORT_HOST", "OB_OPERATOR_TELEMETRY_REPORT_HOST") - v.BindEnv("disable-webhooks", "DISABLE_WEBHOOKS", "OB_OPERATOR_DISABLE_WEBHOOKS") + _ = v.BindEnv("telemetry.disabled", "DISABLE_TELEMETRY", "OB_OPERATOR_TELEMETRY_DISABLED") + _ = v.BindEnv("telemetry.debug", "TELEMETRY_DEBUG", "OB_OPERATOR_TELEMETRY_DEBUG") + _ = v.BindEnv("telemetry.host", "TELEMETRY_REPORT_HOST", "OB_OPERATOR_TELEMETRY_REPORT_HOST") + _ = v.BindEnv("disable-webhooks", "DISABLE_WEBHOOKS", "OB_OPERATOR_DISABLE_WEBHOOKS") v.AutomaticEnv() v.SetEnvPrefix("OB_OPERATOR") v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", ""))