Skip to content

Commit 8922eea

Browse files
committed
refactor: remove unnecessary check
We recently switched to uint64, so the value always is >=0
1 parent 68070ce commit 8922eea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/certificatetransparency/ct-watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func (w *worker) runWorker(ctx context.Context) error {
387387
}
388388

389389
// If recovery is enabled and the CT index is set, we start at the saved index. Otherwise we start at the latest STH.
390-
validSavedCTIndexExists := config.AppConfig.General.Recovery.Enabled && w.ctIndex >= 0
390+
validSavedCTIndexExists := config.AppConfig.General.Recovery.Enabled
391391
if !validSavedCTIndexExists {
392392
sth, getSTHerr := jsonClient.GetSTH(ctx)
393393
if getSTHerr != nil {

0 commit comments

Comments
 (0)