MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / firstNonEmpty

Function firstNonEmpty

internal/pluginhost/auth_provider.go:591–598  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

589}
590
591func firstNonEmpty(values ...string) string {
592 for _, value := range values {
593 if trimmed := strings.TrimSpace(value); trimmed != "" {
594 return trimmed
595 }
596 }
597 return ""
598}

Callers 1

pluginAuthDataToCoreAuthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected