MCPcopy Index your code
hub / github.com/1Password/for-open-source / When

Function When

script/validator.go:57–65  ·  view source on GitHub ↗
(condition bool, callback ValidatorCallback)

Source from the content-addressed store, hash-verified

55}
56
57func When(condition bool, callback ValidatorCallback) ValidatorCallback {
58 if condition {
59 return callback
60 }
61
62 return func(value string) (bool, string, string) {
63 return true, value, ""
64 }
65}
66
67func ParseInput(value string) (bool, string, string) {
68 if value == "" || value == "_No response_" || value == "None" {

Callers 1

ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected