Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
TCeason committed Jul 3, 2024
1 parent a31b027 commit a868873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub async fn main() -> Result<()> {
if tls.to_lowercase() == "true" {
eprintln!("warning: --tls is ignored when --dsn is set")
}
} else if config.connection.args.get("tls").is_none() {
} else if !config.connection.args.contains_key("tls") {
// args.tls is none and not config in config.toml
eprintln!("warning: --tls is ignored when --dsn is set");
}
Expand Down Expand Up @@ -314,7 +314,7 @@ pub async fn main() -> Result<()> {
.args
.insert("sslmode".to_string(), "disable".to_string());
}
} else if conn_args.args.get("tls").is_none() {
} else if !conn_args.args.contains_key("tls") {
// means arg.tls is none and not config in config.toml
conn_args
.args
Expand Down

0 comments on commit a868873

Please sign in to comment.