Skip to content

Commit

Permalink
chore: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre committed Mar 27, 2023
1 parent 944a9c6 commit 2287504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/unit/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ func FindUnitTypes(nameKeys ...string) (res []Type, invalidKeys []string) {
m[t] = struct{}{}
}
}
return
return res, invalidKeys
}

// TypeFromKey give the unit key name and return unit
Expand Down
2 changes: 1 addition & 1 deletion routers/api/v1/org/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func GetTeam(ctx *context.APIContext) {
}

func attachTeamUnits(team *organization.Team, units []string) {
unitTypes := unit_model.FindUnitTypes(units...)
unitTypes, _ := unit_model.FindUnitTypes(units...)
team.Units = make([]*organization.TeamUnit, 0, len(units))
for _, tp := range unitTypes {
team.Units = append(team.Units, &organization.TeamUnit{
Expand Down

0 comments on commit 2287504

Please sign in to comment.