mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-19 09:35:51 +08:00
Don't return an error when swapping 0 indexes
This commit is contained in:
parent
8514c1c12b
commit
22d514645e
@ -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…
Reference in New Issue
Block a user