mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +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 };
|
let task = KindWithContent::IndexSwap { swaps };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user