diff --git a/meilidb-http/src/routes/index.rs b/meilidb-http/src/routes/index.rs index 92c5dfa57..a6367046d 100644 --- a/meilidb-http/src/routes/index.rs +++ b/meilidb-http/src/routes/index.rs @@ -66,9 +66,6 @@ pub async fn create_index(mut ctx: Context) -> SResult { let created_index = match db.create_index(&index_name) { Ok(index) => index, - Err(meilidb_core::Error::IndexAlreadyExists) => db.open_index(&index_name).ok_or( - ResponseError::internal("index not found but must have been found"), - )?, Err(e) => return Err(ResponseError::create_index(e)), };