Skip to content

Commit

Permalink
[fix] 初期化時に空配列を定義
Browse files Browse the repository at this point in the history
  • Loading branch information
hikahana committed Jul 6, 2024
1 parent 343ec94 commit 830a110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/internals/usecase/teacher_usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func (t *teacherUseCase) GetFundRegisteredByPeriods(c context.Context, year stri
return nil, err
}
defer rows.Close()
var ids []int

ids := []int{}
for rows.Next() {
var id int
if err := rows.Scan(&id); err != nil {
Expand Down

0 comments on commit 830a110

Please sign in to comment.