MCPcopy Create free account
hub / github.com/1Password/for-open-source / IsPresent

Function IsPresent

script/validator.go:155–161  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

153}
154
155func IsPresent(value string) (bool, string, string) {
156 if value == "" {
157 return false, value, "is empty"
158 }
159
160 return true, value, ""
161}
162
163func IsEmail(value string) (bool, string, string) {
164 if _, err := mail.ParseAddress(value); err == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected