Skip to content

Commit 2287504

Browse files
committed
chore: lint code
1 parent 944a9c6 commit 2287504

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/unit/unit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func FindUnitTypes(nameKeys ...string) (res []Type, invalidKeys []string) {
356356
m[t] = struct{}{}
357357
}
358358
}
359-
return
359+
return res, invalidKeys
360360
}
361361

362362
// TypeFromKey give the unit key name and return unit

routers/api/v1/org/team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func GetTeam(ctx *context.APIContext) {
135135
}
136136

137137
func attachTeamUnits(team *organization.Team, units []string) {
138-
unitTypes := unit_model.FindUnitTypes(units...)
138+
unitTypes, _ := unit_model.FindUnitTypes(units...)
139139
team.Units = make([]*organization.TeamUnit, 0, len(units))
140140
for _, tp := range unitTypes {
141141
team.Units = append(team.Units, &organization.TeamUnit{

0 commit comments

Comments
 (0)