diff --git a/redis/tests/test_cluster_async.rs b/redis/tests/test_cluster_async.rs index 9294f9046..4dbc0653b 100644 --- a/redis/tests/test_cluster_async.rs +++ b/redis/tests/test_cluster_async.rs @@ -1979,13 +1979,12 @@ mod cluster_async { respond_startup_with_replica_using_config(name, received_cmd, None)?; if port == 6381 { return Err(Ok(Value::Okay)); - } else { - return Err(Err(( - ErrorKind::NotBusy, - "No scripts in execution right now", - ) - .into())); } + Err(Err(( + ErrorKind::NotBusy, + "No scripts in execution right now", + ) + .into())) }, );