Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit834b2e5

Browse files
style: Apply biome formatting fixes to useRetry hook
- Add parentheses around arrow function parameter- Fix indentationCo-authored-by: BrunoQuaresma <3165839+BrunoQuaresma@users.noreply.github.com>
1 parent3f45b74 commit834b2e5

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
awaitonRetryEvent();
@@ -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-
constdelay=calculateDelay(Math.max(0,attempt-1));
125+
constdelay=calculateDelay(Math.max(0,attempt-1));
126126
setCurrentDelay(delay);
127127
setTimeUntilNextRetry(delay);
128128
startTimeRef.current=Date.now();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp