Skip to content

Commit

Permalink
options: remove copy-paste for handling CLICKHOUSE_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
filimonov authored Apr 4, 2024
1 parent 3ece6dc commit cf256fc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/interpreter/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf256fc

Please sign in to comment.