Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
williamsjokvist committed Oct 21, 2024
1 parent a2aca84 commit d5787bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/storage/sql/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ func (s *Storage) GetSessionsStatistics(ctx context.Context, userId string) (*mo

for rows.Next() {
var monthCount monthlySessionCount
rows.Scan(&monthCount.Month, &monthCount.Count)
if err := rows.Scan(&monthCount.Month, &monthCount.Count); err != nil {
return nil, fmt.Errorf("scan monthly session count row: %w", err)
}
monthCounts = append(monthCounts, model.SessionMonth{
Date: monthCount.Month,
Count: monthCount.Count,
Expand Down

0 comments on commit d5787bb

Please sign in to comment.