(entries []skills.ShadowEntry)
| 230 | } |
| 231 | |
| 232 | func skillShadowEntryRecordsFromDomain(entries []skills.ShadowEntry) []contract.SkillShadowEntryPayload { |
| 233 | if len(entries) == 0 { |
| 234 | return nil |
| 235 | } |
| 236 | records := make([]contract.SkillShadowEntryPayload, 0, len(entries)) |
| 237 | for _, entry := range entries { |
| 238 | records = append(records, skillShadowEntryRecordFromDomain(entry)) |
| 239 | } |
| 240 | return records |
| 241 | } |
| 242 | |
| 243 | func skillShadowEntryRecordFromDomain(entry skills.ShadowEntry) contract.SkillShadowEntryPayload { |
| 244 | return contract.SkillShadowEntryPayload{ |
no test coverage detected