generated from VLADIMIR/template
fix
This commit is contained in:
@@ -28,13 +28,3 @@ func mapTeamDetails(o *game_model.Team) *proto.Team {
|
|||||||
team.ParticipantsCount = o.ParticipantsCount
|
team.ParticipantsCount = o.ParticipantsCount
|
||||||
return team
|
return team
|
||||||
}
|
}
|
||||||
|
|
||||||
func mapTeams(
|
|
||||||
o []*game_model.Team,
|
|
||||||
) []*proto.Team {
|
|
||||||
res := make([]*proto.Team, 0, len(o))
|
|
||||||
for _, item := range o {
|
|
||||||
res = append(res, mapTeam(item))
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -21,21 +21,6 @@ func mapScenariosLight(
|
|||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
func mapScenarios(
|
|
||||||
o []*repos.Scenario,
|
|
||||||
domain string,
|
|
||||||
) ([]*Scenario, error) {
|
|
||||||
res := make([]*Scenario, 0, len(o))
|
|
||||||
for _, item := range o {
|
|
||||||
scenario, err := mapScenario(item, domain)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
res = append(res, scenario)
|
|
||||||
}
|
|
||||||
return res, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func MapScenarioLight(
|
func MapScenarioLight(
|
||||||
o *repos.Scenario,
|
o *repos.Scenario,
|
||||||
domain string,
|
domain string,
|
||||||
|
|||||||
Reference in New Issue
Block a user