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

Function cloneOwnership

internal/api/core/tasks.go:3031–3039  ·  view source on GitHub ↗
(source *taskpkg.Ownership)

Source from the content-addressed store, hash-verified

3029}
3030
3031func cloneOwnership(source *taskpkg.Ownership) *taskpkg.Ownership {
3032 if source == nil {
3033 return nil
3034 }
3035 return &taskpkg.Ownership{
3036 Kind: source.Kind.Normalize(),
3037 Ref: strings.TrimSpace(source.Ref),
3038 }
3039}
3040
3041func cloneActorIdentity(source *taskpkg.ActorIdentity) *taskpkg.ActorIdentity {
3042 if source == nil {

Calls 1

NormalizeMethod · 0.45

Tested by

no test coverage detected