Code formatting

This commit is contained in:
kdeng00
2025-10-19 19:44:42 -04:00
parent af1af57a7e
commit 7557537055
2 changed files with 10 additions and 7 deletions
+6 -5
View File
@@ -1498,12 +1498,13 @@ pub mod endpoint {
Ok(coverart) => {
// let coverart_path = std::path::Path::new(&coverart.path);
let coverart_path_str = match coverart.get_path() {
Ok(path) => {
path
}
Ok(path) => path,
Err(err) => {
response.message = err.to_string();
return (axum::http::StatusCode::INTERNAL_SERVER_ERROR, axum::Json(response));
return (
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
axum::Json(response),
);
}
};
let coverart_path = std::path::Path::new(&coverart_path_str);
@@ -1522,7 +1523,7 @@ pub mod endpoint {
Ok(deleted_coverart) => {
match std::fs::remove_file(song_path) {
Ok(_) => match std::fs::remove_file(
&coverart_path
&coverart_path,
) {
Ok(_) => {
response.message = String::from(super::super::response::SUCCESSFUL);