From e87e06dd37e91e804cc2478d5bd4ca929c7c4f82 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Thu, 14 Nov 2024 03:21:18 +0800 Subject: [PATCH] chore: unified code format --- src-tauri/src/core/backup.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/core/backup.rs b/src-tauri/src/core/backup.rs index 42b0f7b..3d91a40 100644 --- a/src-tauri/src/core/backup.rs +++ b/src-tauri/src/core/backup.rs @@ -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?; }