diff --git a/meilisearch-http/src/routes/indexes_swap.rs b/meilisearch-http/src/routes/indexes_swap.rs index c3f81da08..28a4c12d9 100644 --- a/meilisearch-http/src/routes/indexes_swap.rs +++ b/meilisearch-http/src/routes/indexes_swap.rs @@ -61,12 +61,6 @@ pub async fn indexes_swap( )); } } - if swaps.is_empty() { - return Err(ResponseError::from_msg( - "TODO: error message when swaps is empty".to_owned(), - Code::BadRequest, - )); - } let task = KindWithContent::IndexSwap { swaps };