Fix linter error
All checks were successful
cacert-boardvoting/pipeline/head This commit looks good

- remove nextPotentialRun.Add that had no effect
This commit is contained in:
Jan Dittberner 2023-05-12 19:18:15 +02:00
parent 4276594f8d
commit 20d324f5cb

View file

@ -1,5 +1,5 @@
/*
Copyright 2017-2022 CAcert Inc.
Copyright 2017-2023 CAcert Inc.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
@ -47,7 +47,6 @@ func (r *RemindVotersJob) Schedule() {
year, month, day := now.Date()
nextPotentialRun := time.Date(year, month, day+1, 0, 0, 0, 0, time.UTC)
nextPotentialRun.Add(hoursInDay * time.Hour)
relevantDue := nextPotentialRun.Add(reminderDays * hoursInDay * time.Hour)