Skip to content

Commit 7352a2e

Browse files
committed
refactor: rename internal variable for better code readability
1 parent c5250a0 commit 7352a2e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/certificatetransparency/ct-watcher.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ func (w *worker) runWorker(ctx context.Context) error {
396396
return errCreatingClient
397397
}
398398

399-
// If recovery is enabled and the CT index is set, we start at the saved index. Otherwise we start at the latest STH.
400-
validSavedCTIndexExists := config.AppConfig.General.Recovery.Enabled
401-
if !validSavedCTIndexExists {
399+
// If recovery is enabled, we start at the saved index. Otherwise, we start at the latest STH.
400+
recoveryEnabled := config.AppConfig.General.Recovery.Enabled
401+
if !recoveryEnabled {
402402
sth, getSTHerr := jsonClient.GetSTH(ctx)
403403
if getSTHerr != nil {
404404
// TODO this can happen due to a 429 error. We should retry the request

0 commit comments

Comments
 (0)