mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-15 20:42:24 +02:00
Make cargo fmt happy
This commit is contained in:
parent
985b892b7a
commit
4a0ec15ad2
@ -62,10 +62,7 @@ pub async fn get_chat(
|
|||||||
if index_scheduler.chat_workspace_exists(&workspace_uid)? {
|
if index_scheduler.chat_workspace_exists(&workspace_uid)? {
|
||||||
Ok(HttpResponse::Ok().json(json!({ "uid": workspace_uid })))
|
Ok(HttpResponse::Ok().json(json!({ "uid": workspace_uid })))
|
||||||
} else {
|
} else {
|
||||||
Err(ResponseError::from_msg(
|
Err(ResponseError::from_msg(format!("chat {workspace_uid} not found"), Code::ChatNotFound))
|
||||||
format!("chat {workspace_uid} not found"),
|
|
||||||
Code::ChatNotFound,
|
|
||||||
))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,10 +78,7 @@ pub async fn delete_chat(
|
|||||||
wtxn.commit()?;
|
wtxn.commit()?;
|
||||||
Ok(HttpResponse::NoContent().finish())
|
Ok(HttpResponse::NoContent().finish())
|
||||||
} else {
|
} else {
|
||||||
Err(ResponseError::from_msg(
|
Err(ResponseError::from_msg(format!("chat {workspace_uid} not found"), Code::ChatNotFound))
|
||||||
format!("chat {workspace_uid} not found"),
|
|
||||||
Code::ChatNotFound,
|
|
||||||
))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user