Skip to content

Commit

Permalink
Merge pull request #2 from arsulegai/no-check
Browse files Browse the repository at this point in the history
Do not check if current time is after requested time
  • Loading branch information
arsulegai authored Jun 8, 2023
2 parents 694dd6b + 1866285 commit c9ed3f5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ func main() {
numberOfDays := int(differenceTime.Hours() / 24)

log.Printf("current: %v requested: %v", currentTime, requestedTime)

// do not proceed if the current time is way past the schedule
// reminder
if currentTime.After(requestedTime) {
// nothing to do, continue looking for
// more schedules
continue
}

log.Printf("difference: %v configured: %v", numberOfDays, config.BufferWindowDays)

// found a case where action is needed
Expand Down

0 comments on commit c9ed3f5

Please sign in to comment.