Skip to content

Conversation

@sanders41
Copy link
Contributor

@curquiza curquiza requested a review from Mubelotix June 7, 2021 12:44
Copy link
Collaborator

@Mubelotix Mubelotix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! It will be much more idiomatic and makes it possible to handle errors better.

Previously, we used

let _ = index.delete();

a lot but it ignores all errors which wasn't great.

@curquiza curquiza changed the title Adding delete if exists Adding delete_index_if_exists method Jun 9, 2021
Copy link
Collaborator

@Mubelotix Mubelotix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sanders41!

@curquiza
Copy link
Member

Thank you so much to both of you!!

bors merge

@bors
Copy link
Contributor

bors bot commented Jun 12, 2021

Build succeeded:

@bors bors bot merged commit 322fe6e into meilisearch:main Jun 12, 2021
@curquiza curquiza mentioned this pull request Jun 12, 2021
@sanders41 sanders41 deleted the delete_if_exists branch June 12, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants