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

Function cloneActorIdentity

internal/extension/host_api_tasks.go:1517–1525  ·  view source on GitHub ↗
(source *taskpkg.ActorIdentity)

Source from the content-addressed store, hash-verified

1515}
1516
1517func cloneActorIdentity(source *taskpkg.ActorIdentity) *taskpkg.ActorIdentity {
1518 if source == nil {
1519 return nil
1520 }
1521 return &taskpkg.ActorIdentity{
1522 Kind: source.Kind.Normalize(),
1523 Ref: strings.TrimSpace(source.Ref),
1524 }
1525}
1526
1527func trimStringPtr(source *string) *string {
1528 if source == nil {

Callers 2

taskRunPayloadFromRunFunction · 0.70

Calls 1

NormalizeMethod · 0.45

Tested by

no test coverage detected