MCPcopy Create free account
hub / github.com/compozy/agh / firstNonEmpty

Function firstNonEmpty

internal/registry/github/client.go:1044–1051  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

1042}
1043
1044func firstNonEmpty(values ...string) string {
1045 for _, value := range values {
1046 if trimmed := strings.TrimSpace(value); trimmed != "" {
1047 return trimmed
1048 }
1049 }
1050 return ""
1051}

Callers 3

TestFirstNonEmptyFunction · 0.70
InfoMethod · 0.70
openDownloadResponseMethod · 0.70

Calls

no outgoing calls

Tested by 1

TestFirstNonEmptyFunction · 0.56