Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuthor committed Nov 5, 2024
1 parent fe073a3 commit ec03460
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crate/cli/src/tests/auth_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ const PORT: u16 = 6667;
#[ignore]
pub(crate) async fn test_all_authentications() -> CliResult<()> {
log_init(option_env!("RUST_LOG"));
let url = if let Ok(var_env) = env::var("REDIS_HOST") {
format!("redis://{var_env}:6379")
} else {
"redis://localhost:6379".to_owned()
};
let url = env::var("REDIS_HOST").map_or_else(
|_| "redis://localhost:6379".to_owned(),
|var_env| format!("redis://{var_env}:6379"),
);
trace!("TESTS: using redis on {url}");
// plaintext no auth
info!("Testing server with no auth");
Expand Down

0 comments on commit ec03460

Please sign in to comment.