mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01: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…
x
Reference in New Issue
Block a user