mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Don't return an error when swapping 0 indexes
This commit is contained in:
parent
8514c1c12b
commit
22d514645e
1 changed files with 0 additions and 6 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue