MaxSendAttemptsSanitized returns the max send attempts replacing 0 with 2
()
| 43 | |
| 44 | // MaxSendAttemptsSanitized returns the max send attempts replacing 0 with 2 |
| 45 | func (phone *Phone) MaxSendAttemptsSanitized() uint { |
| 46 | if phone.MaxSendAttempts == 0 { |
| 47 | return 2 |
| 48 | } |
| 49 | return phone.MaxSendAttempts |
| 50 | } |