mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Don't return an error when swapping 0 indexes
This commit is contained in:
parent
11fee30f47
commit
d20b5ddda0
@ -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