Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Must* methods for any methods that can panic in tuple pkg #176

Merged
merged 1 commit into from
Oct 7, 2021

Conversation

josephschorr
Copy link
Member

Fixes #131

@github-actions github-actions bot added area/api v0 Affects the v0 API area/api v1 Affects the v1 API area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Oct 6, 2021
return String(FromRelationship(tpl))
// MustRelString converts a relationship into a string.
func MustRelString(tpl *v1.Relationship) string {
return String(MustFromRelationship(tpl))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What about a non-Must RelString?

Copy link
Member Author

Choose a reason for hiding this comment

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

No one used the non-Must version, so I didn't keep it

Copy link
Member Author

Choose a reason for hiding this comment

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

Added back in as discussed

Fixes #131

Signed-off-by: Joseph Schorr <josephschorr@users.noreply.github.com>
Copy link
Contributor

@ecordell ecordell left a comment

Choose a reason for hiding this comment

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

LGTM

@josephschorr josephschorr merged commit 424037a into main Oct 7, 2021
@josephschorr josephschorr deleted the must-tuple branch October 7, 2021 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api v0 Affects the v0 API area/api v1 Affects the v1 API area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefix panicking functions in tuple package with "Must"
2 participants