Fix unnecessary conversion lint (#6136)

This commit is contained in:
Aaron Gable 2022-05-24 18:15:07 -07:00 committed by GitHub
parent fd57e39414
commit 8066983fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ func (m *mailer) findExpiringCertificates(ctx context.Context) error {
// of any certificate in this batch because it's based on the first (oldest). // of any certificate in this batch because it's based on the first (oldest).
sendDelay := expiresIn - certs[0].Expires.Sub(m.clk.Now()) sendDelay := expiresIn - certs[0].Expires.Sub(m.clk.Now())
m.stats.sendDelay.With(prometheus.Labels{"nag_group": expiresIn.String()}).Set( m.stats.sendDelay.With(prometheus.Labels{"nag_group": expiresIn.String()}).Set(
float64(sendDelay.Truncate(time.Second).Seconds())) sendDelay.Truncate(time.Second).Seconds())
processingStarted := m.clk.Now() processingStarted := m.clk.Now()
err = m.processCerts(ctx, certs) err = m.processCerts(ctx, certs)