use Getenv

This commit is contained in:
Shreyas Goenka 2025-02-27 13:38:50 +01:00
parent 8b3d942b48
commit c1272b3cdd
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ func uploadTelemetry(ctx context.Context, cmdStr string, startTime time.Time, ex
}
// Telemetry is disabled. We don't upload logs.
if _, ok := os.LookupEnv(telemetry.DisableEnvVar); ok {
if os.Getenv(telemetry.DisableEnvVar) != "" {
return
}