From 828aa634c79dac0c545e5af838a824f94ecec0fa Mon Sep 17 00:00:00 2001 From: Strycher Date: Mon, 3 Aug 2026 16:27:33 -0400 Subject: [PATCH] fix(#425): remove em-dashes from doc comments (CI em-dash guard #464) --- lib/services/translation_service.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/translation_service.dart b/lib/services/translation_service.dart index ace75719..5c1055f4 100644 --- a/lib/services/translation_service.dart +++ b/lib/services/translation_service.dart @@ -45,7 +45,7 @@ bool isRetryableDownloadStatus(int statusCode) => /// Exponential backoff for download [attempt] (1-based): 1, 2, 4, 8, 16 s capped /// at 30 s; a larger server `Retry-After` (seconds) wins, also capped. No jitter -/// (single-client download — no thundering-herd concern). #229 +/// (single-client download, no thundering-herd concern). #229 Duration translationDownloadBackoff(int attempt, {int? retryAfterSeconds}) { final exp = (1 << (attempt - 1)).clamp(1, 30); final seconds = (retryAfterSeconds != null && retryAfterSeconds > exp) @@ -58,7 +58,7 @@ int? _retryAfterHeaderSeconds(Map headers) => int.tryParse(headers['retry-after']?.trim() ?? ''); /// Sends the request built by [buildRequest] on [client], retrying transient -/// failures — 5xx / 429 responses and network exceptions — with bounded +/// failures (5xx / 429 responses and network exceptions) with bounded /// exponential backoff. Terminal responses (2xx, 3xx, non-retryable 4xx) are /// returned for the caller to validate; a sustained failure throws after /// [maxAttempts]. Cancellable via [isCancelled]. Deps injected → unit-testable.