Entitled returns if the entitlement can be used. So this is true if it is entitled or still in it's grace period.
()
| 40 | // Entitled returns if the entitlement can be used. So this is true if it |
| 41 | // is entitled or still in it's grace period. |
| 42 | func (e Entitlement) Entitled() bool { |
| 43 | return e == EntitlementEntitled || e == EntitlementGracePeriod |
| 44 | } |
| 45 | |
| 46 | // Weight converts the enum types to a numerical value for easier |
| 47 | // comparisons. Easier than sets of if statements. |
no outgoing calls
no test coverage detected