(actor taskpkg.ActorIdentity)
| 1007 | } |
| 1008 | |
| 1009 | func normalizeTaskInboxActor(actor taskpkg.ActorIdentity) (taskpkg.ActorIdentity, error) { |
| 1010 | normalized := taskpkg.ActorIdentity{ |
| 1011 | Kind: actor.Kind.Normalize(), |
| 1012 | Ref: strings.TrimSpace(actor.Ref), |
| 1013 | } |
| 1014 | if err := normalized.Validate("task_inbox.actor"); err != nil { |
| 1015 | return taskpkg.ActorIdentity{}, err |
| 1016 | } |
| 1017 | return normalized, nil |
| 1018 | } |
| 1019 | |
| 1020 | func taskInboxLanes(filter TaskInboxLane) []TaskInboxLane { |
| 1021 | if filter.Normalize() != "" { |
no test coverage detected