MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / removeAppFromTargets

Function removeAppFromTargets

internal/metadata/store.go:358–371  ·  view source on GitHub ↗

removeAppFromTargets removes a specific app from a comma-separated target list.

(targets, app string)

Source from the content-addressed store, hash-verified

356
357// removeAppFromTargets removes a specific app from a comma-separated target list.
358func removeAppFromTargets(targets, app string) string {
359 if targets == "" {
360 return ""
361 }
362 parts := strings.Split(targets, ",")
363 result := make([]string, 0, len(parts))
364 for _, p := range parts {
365 p = strings.TrimSpace(p)
366 if p != "" && p != app {
367 result = append(result, p)
368 }
369 }
370 return strings.Join(result, ",")
371}
372
373func scanItems(rows *sql.Rows) ([]Item, error) {
374 items := []Item{}

Callers 1

MarkUninstalledMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected