Skip to content

Commit 9e80bd3

Browse files
committed
removed retry
1 parent c0cfe85 commit 9e80bd3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Lighthouse/utils/util.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,7 @@ async function retryFetch(
132132
options: FetchOptions,
133133
retries = 3
134134
): Promise<Response> {
135-
for (let i = 0; i < retries; i++) {
136-
try {
137-
return await fetchWithTimeout(resource, options)
138-
} catch (error) {
139-
if (i < retries - 1) {
140-
} else {
141-
throw error
142-
}
143-
}
144-
}
145-
throw new Error('fetch failed')
135+
return await fetchWithTimeout(resource, options)
146136
}
147137

148138
export {

0 commit comments

Comments
 (0)