mirror of https://github.com/databricks/cli.git
use Getenv
This commit is contained in:
parent
8b3d942b48
commit
c1272b3cdd
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue