From cf256fc38bbd99801424f189a939e4ff8cf2b463 Mon Sep 17 00:00:00 2001 From: filimonov <1549571+filimonov@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:04:33 +0200 Subject: [PATCH] options: remove copy-paste for handling CLICKHOUSE_PASSWORD --- src/interpreter/options.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/interpreter/options.rs b/src/interpreter/options.rs index bcca6a7..74cfd6a 100644 --- a/src/interpreter/options.rs +++ b/src/interpreter/options.rs @@ -315,11 +315,6 @@ fn clickhouse_url_defaults(options: &mut ChDigOptions) { url.set_password(Some(env_password.as_str())).unwrap(); } } - if url.password().is_none() { - if let Ok(env_password) = env::var("CLICKHOUSE_PASSWORD") { - url.set_password(Some(env_password.as_str())).unwrap(); - } - } // // config