Skip to content

Commit

Permalink
fix: int error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Jan 14, 2025
1 parent f872d81 commit a21954c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion delivery/websocket/task_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ func (s *Server) checkExpiration() { //nolint
continue
}

// lint error is g115 gosec rule. this rule is broken.
// see: https://github.com/securego/gosec/issues/1288
if err := s.handler.DeleteByID(data[0],
types.Kind(kind)); err != nil {
types.Kind(kind)); err != nil { //nolint
failedTasks = append(failedTasks, task)
}
}
Expand Down

0 comments on commit a21954c

Please sign in to comment.