MCPcopy Create free account
hub / github.com/AandStep/ResultV / firstNonEmpty

Function firstNonEmpty

app.go:189–196  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

187}
188
189func firstNonEmpty(values ...string) string {
190 for _, v := range values {
191 if strings.TrimSpace(v) != "" {
192 return strings.TrimSpace(v)
193 }
194 }
195 return ""
196}
197
198// GetUpdateManifest fetches update.json via the Go backend.
199// This avoids WebView fetch/CORS/network-policy issues on some Windows setups.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected