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