Skip to content

Commit

Permalink
removing commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
juliev0 committed Feb 2, 2022
1 parent abb1bc0 commit 408f62d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sensors/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error {

// set lastResetTime (the last time this would've been triggered)
if len(cr.Entries()) > 0 {
/*firstEntry := cr.Entry(1)
specSchedule, castOk := firstEntry.Schedule.(*cronlib.SpecSchedule)
if !castOk {
logger.Errorw("failed to cast cronlib.Schedule to *SpecSchedule")
continue
}
prevTriggerTime := specSchedule.Prev(time.Now().UTC())*/
prevTriggerTime, err := common.PrevCronTime(c.ByTime.Cron, cronParser, nowTime)
if err != nil {
logger.Errorw("couldn't get previous cron trigger time", zap.Error(err))
Expand Down

0 comments on commit 408f62d

Please sign in to comment.