MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / MaxSendAttemptsSanitized

Method MaxSendAttemptsSanitized

api/pkg/entities/phone.go:45–50  ·  view source on GitHub ↗

MaxSendAttemptsSanitized returns the max send attempts replacing 0 with 2

()

Source from the content-addressed store, hash-verified

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

Callers 1

phoneSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected