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

Function firstNonEmptyScope

internal/api/core/memory.go:2389–2396  ·  view source on GitHub ↗
(values ...memcontract.Scope)

Source from the content-addressed store, hash-verified

2387}
2388
2389func firstNonEmptyScope(values ...memcontract.Scope) memcontract.Scope {
2390 for _, value := range values {
2391 if normalized := value.Normalize(); normalized != "" {
2392 return normalized
2393 }
2394 }
2395 return ""
2396}
2397
2398func firstNonEmptyString(values ...string) string {
2399 for _, value := range values {

Callers 1

Calls 1

NormalizeMethod · 0.45

Tested by

no test coverage detected