Skip to content

Small cleanup in ShardGetService#89578

Merged
romseygeek merged 1 commit intoelastic:mainfrom
romseygeek:get/cleanup
Aug 24, 2022
Merged

Small cleanup in ShardGetService#89578
romseygeek merged 1 commit intoelastic:mainfrom
romseygeek:get/cleanup

Conversation

@romseygeek
Copy link
Copy Markdown
Contributor

We can use try-with-resources here, and remove a null check because IndexShard.get
never returns null.

@romseygeek romseygeek added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.5.0 labels Aug 24, 2022
@romseygeek romseygeek requested a review from nik9000 August 24, 2022 14:09
@romseygeek romseygeek self-assigned this Aug 24, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Aug 24, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search (Team:Search)

@romseygeek
Copy link
Copy Markdown
Contributor Author

I was in here anyway and thought I'd pull this tiny refactoring out into its own PR.

@romseygeek romseygeek merged commit 5422860 into elastic:main Aug 24, 2022
@romseygeek romseygeek deleted the get/cleanup branch August 24, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants