Skip to content

Commit

Permalink
Remove: redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterReinert authored Jan 6, 2025
1 parent 80eb1ac commit 9fab2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/replays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const Replays = new class {
return replayData;
}

export async function retry<T>(fn: () => Promise<T>, retries: number = 3, delayMs: number = 1000): Promise<T> {
async retry<T>(fn: () => Promise<T>, retries: number = 3, delayMs: number = 1000): Promise<T> {

Check failure on line 94 in server/replays.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Type number trivially inferred from a number literal, remove type annotation

Check failure on line 94 in server/replays.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Type number trivially inferred from a number literal, remove type annotation
let lastError: any;
for (let attempt = 1; attempt <= retries; attempt++) {
try {
Expand Down

0 comments on commit 9fab2c6

Please sign in to comment.