From cfec602fa7d2d842e994cd3483d2dc4e0b5d6bbd Mon Sep 17 00:00:00 2001 From: teslaedison <156734008+teslaedison@users.noreply.github.com> Date: Wed, 2 Apr 2025 00:51:57 +0800 Subject: [PATCH] chore: remove repetitive words --- management/events.go | 2 +- retry/backoffhandler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/management/events.go b/management/events.go index 528bae18..2983f875 100644 --- a/management/events.go +++ b/management/events.go @@ -129,7 +129,7 @@ func (e *LogEventType) UnmarshalJSON(data []byte) error { // LogLevel corresponds to the zerolog logging levels // "panic", "fatal", and "trace" are exempt from this list as they are rarely used and, at least -// the the first two are limited to failure conditions that lead to cloudflared shutting down. +// the first two are limited to failure conditions that lead to cloudflared shutting down. type LogLevel int8 const ( diff --git a/retry/backoffhandler.go b/retry/backoffhandler.go index f8989481..945541a3 100644 --- a/retry/backoffhandler.go +++ b/retry/backoffhandler.go @@ -99,7 +99,7 @@ func (b *BackoffHandler) Backoff(ctx context.Context) bool { } } -// Sets a grace period within which the the backoff timer is maintained. After the grace +// Sets a grace period within which the backoff timer is maintained. After the grace // period expires, the number of retries & backoff duration is reset. func (b *BackoffHandler) SetGracePeriod() time.Duration { maxTimeToWait := b.GetBaseTime() * 2 << (b.retries + 1)