Skip to content

Commit

Permalink
Fix signature of MustParseV1Rel
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 authored Oct 30, 2024
1 parent 11d23ae commit 62e50a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/tuple/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ func ParseV1Rel(relString string) (*v1.Relationship, error) {
}

// Same as above, but panics if it cannot be parsed. Should only be used in tests.
func MustParseV1Rel(relString string) (*v1.Relationship, error) {
func MustParseV1Rel(relString string) (*v1.Relationship) {
parsed, err := Parse(relString)
if err != nil {
panic(fmt.Sprintf("could not parse relationship string: %s %s", relString, err))
}

return ToV1Relationship(parsed), nil
return ToV1Relationship(parsed)
}

// MustV1RelString converts a relationship into a string. Will panic if
Expand Down

0 comments on commit 62e50a2

Please sign in to comment.