Skip to content

Commit 53d5139

Browse files
committed
fix: correct webdav_status_error param order in delete_collection
1 parent a5d1de9 commit 53d5139

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src-tauri/src/services/webdav.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,7 @@ pub async fn delete_collection(url: &str, auth: &WebDavAuth) -> Result<bool, App
383383
match status {
384384
s if s.is_success() => Ok(true),
385385
StatusCode::NOT_FOUND | StatusCode::GONE => Ok(false),
386-
_ => Err(webdav_status_error(
387-
"DELETE",
388-
url,
389-
status,
390-
&resp.text().await.unwrap_or_default(),
391-
)),
386+
_ => Err(webdav_status_error(url, "DELETE", status, url)),
392387
}
393388
}
394389

0 commit comments

Comments
 (0)