Skip to content

Commit

Permalink
fix: list-capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
miyunari committed Apr 25, 2022
1 parent bc1df00 commit e837b51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/v1/team/team_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ func (t *TeamService) ListCapacity(w http.ResponseWriter, r *http.Request) {
teamOwnerID: team.OwnerID,
teamID: request.TeamID,
})
}

if len(teamsBundle) == 0 {
} else {
teams, err := t.store.ListTeams(r.Context())
if err != nil {
logger.Error(err)
Expand Down

0 comments on commit e837b51

Please sign in to comment.