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

Function cloneActorIdentity

internal/api/core/tasks.go:3041–3049  ·  view source on GitHub ↗
(source *taskpkg.ActorIdentity)

Source from the content-addressed store, hash-verified

3039}
3040
3041func cloneActorIdentity(source *taskpkg.ActorIdentity) *taskpkg.ActorIdentity {
3042 if source == nil {
3043 return nil
3044 }
3045 return &taskpkg.ActorIdentity{
3046 Kind: source.Kind.Normalize(),
3047 Ref: strings.TrimSpace(source.Ref),
3048 }
3049}
3050
3051func trimStringPtr(source *string) *string {
3052 if source == nil {

Callers 3

TaskRunPayloadFromRunFunction · 0.70

Calls 1

NormalizeMethod · 0.45

Tested by

no test coverage detected