chore: unified code format

This commit is contained in:
huzibaca 2024-11-14 03:21:18 +08:00
parent b9bb79b4dc
commit e87e06dd37
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -54,9 +54,11 @@ impl WebDavClient {
password.to_owned(),
))
.build()?;
if let Err(_) = client
if (client
.list(dirs::BACKUP_DIR, reqwest_dav::Depth::Number(0))
.await
.await)
.is_err()
{
client.mkcol(dirs::BACKUP_DIR).await?;
}