Appease clippy

This commit is contained in:
Paul Hauner
2022-11-14 17:44:39 +11:00
parent fb49408a92
commit c63fece35c
3 changed files with 5 additions and 5 deletions

View File

@@ -427,7 +427,7 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
))
})?;
let secrets_dir = store_passwords_in_secrets_dir.then(|| secrets_dir);
let secrets_dir = store_passwords_in_secrets_dir.then_some(secrets_dir);
let password_storage = if let Some(secrets_dir) = &secrets_dir {
let password_path = keystore_password_path(secrets_dir, &body.keystore);
if password_path.exists() {