MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / firstNonEmptyString

Function firstNonEmptyString

agent/task_runtime.go:972–979  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

970}
971
972func firstNonEmptyString(values ...string) string {
973 for _, value := range values {
974 if value != "" {
975 return value
976 }
977 }
978 return ""
979}
980
981func nilIfEmpty(value string) any {
982 if value == "" {

Callers 3

ImportSnapshotMethod · 0.70
StopTaskMethod · 0.70
runExtractionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected