Skip to content

Commit 834b2e5

Browse files
style: Apply biome formatting fixes to useRetry hook
- Add parentheses around arrow function parameter - Fix indentation Co-authored-by: BrunoQuaresma <3165839+BrunoQuaresma@users.noreply.github.com>
1 parent 3f45b74 commit 834b2e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/hooks/useRetry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function useRetry(options: UseRetryOptions): UseRetryReturn {
100100
setCurrentDelay(null);
101101
clearTimers();
102102
// Increment attempt count when starting the retry
103-
setAttemptCount(prev => prev + 1);
103+
setAttemptCount((prev) => prev + 1);
104104

105105
try {
106106
await onRetryEvent();
@@ -122,7 +122,7 @@ export function useRetry(options: UseRetryOptions): UseRetryReturn {
122122
}
123123

124124
// Calculate delay based on attempt - 1 (so first retry gets initialDelay)
125-
const delay = calculateDelay(Math.max(0, attempt - 1));
125+
const delay = calculateDelay(Math.max(0, attempt - 1));
126126
setCurrentDelay(delay);
127127
setTimeUntilNextRetry(delay);
128128
startTimeRef.current = Date.now();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy