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

Function normalizeOwnership

internal/task/manager.go:4079–4090  ·  view source on GitHub ↗
(owner *Ownership)

Source from the content-addressed store, hash-verified

4077}
4078
4079func normalizeOwnership(owner *Ownership) *Ownership {
4080 if owner == nil {
4081 return nil
4082 }
4083 normalized := *owner
4084 normalized.Kind = normalized.Kind.Normalize()
4085 normalized.Ref = strings.TrimSpace(normalized.Ref)
4086 if normalized.IsZero() {
4087 return nil
4088 }
4089 return &normalized
4090}
4091
4092func cloneOwnership(owner *Ownership) *Ownership {
4093 if owner == nil {

Callers 3

normalizeCreateTaskSpecFunction · 0.85
normalizeTaskPatchFunction · 0.85

Calls 2

NormalizeMethod · 0.45
IsZeroMethod · 0.45

Tested by 1