Skip to content

Add missing return on a failed GetShard call in FindAllShardsInKeyspace#7992

Merged
rafael merged 1 commit intovitessio:masterfrom
tinyspeck:am_missing_return
May 4, 2021
Merged

Add missing return on a failed GetShard call in FindAllShardsInKeyspace#7992
rafael merged 1 commit intovitessio:masterfrom
tinyspeck:am_missing_return

Conversation

@ajm188
Copy link
Copy Markdown
Contributor

@ajm188 ajm188 commented Apr 29, 2021

Signed-off-by: Andrew Mason amason@slack-corp.com

Description

I caught this while setting up errcheck in our linter, and I'm glad I did!

Related Issue(s)

Checklist

  • Tests were added or are not required
    • @deepthi I'm not sure how to force a failure on a single GetShard call (without failing the earlier GetShardNames call) in order to write a test case; do you have any ideas/suggestions?
  • Documentation was added or is not required => n/a

Deployment Notes

…space`

Signed-off-by: Andrew Mason <amason@slack-corp.com>
@ajm188 ajm188 requested a review from deepthi April 29, 2021 02:24
@ajm188 ajm188 requested a review from rafael as a code owner April 29, 2021 02:24
Copy link
Copy Markdown
Member

@rafael rafael left a comment

Choose a reason for hiding this comment

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

LGTM

@rafael rafael merged commit 8e0531f into vitessio:master May 4, 2021
@ajm188 ajm188 deleted the am_missing_return branch May 29, 2021 10:25
ajm188 pushed a commit to tinyspeck/vitess that referenced this pull request Jul 23, 2021
Add missing return on a failed `GetShard` call in `FindAllShardsInKeyspace`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants