Fix linter error
cacert-boardvoting/pipeline/head This commit looks good Details

- remove nextPotentialRun.Add that had no effect
main
Jan Dittberner 12 months ago
parent 4276594f8d
commit 20d324f5cb

@ -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)

Loading…
Cancel
Save