IsValid - check whether this legal hold status is valid or not.
()
| 64 | |
| 65 | // IsValid - check whether this legal hold status is valid or not. |
| 66 | func (r LegalHoldStatus) IsValid() bool { |
| 67 | return r == LegalHoldEnabled || r == LegalHoldDisabled |
| 68 | } |
| 69 | |
| 70 | func newObjectLegalHold(status *LegalHoldStatus) (*objectLegalHold, error) { |
| 71 | if status == nil { |
no outgoing calls
no test coverage detected