MCPcopy Create free account
hub / github.com/Permify/permify / NormalizeRelation

Function NormalizeRelation

pkg/tuple/tuple.go:32–37  ·  view source on GitHub ↗

NormalizeRelation normalizes the relation, treating ellipsis as an empty string

(relation string)

Source from the content-addressed store, hash-verified

30
31// NormalizeRelation normalizes the relation, treating ellipsis as an empty string
32func NormalizeRelation(relation string) string {
33 if relation == ELLIPSIS {
34 return ""
35 }
36 return relation
37}
38
39// AreSubjectsEqual checks if two subjects are equal
40func AreSubjectsEqual(s1, s2 *base.Subject) bool {

Callers 3

tuple_test.goFile · 0.85
AreSubjectsEqualFunction · 0.85
AreQueryAndSubjectEqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected