Skip to content

Conversation

@chanlee
Copy link
Collaborator

@chanlee chanlee commented Sep 27, 2025

No description provided.

@chanlee chanlee merged commit 9c4b9ae into master Sep 27, 2025
4 checks passed
const response = await fetch(`${Entry.baseUrl || ''}${options.url}${queryString}`, options);
if (response.status >= 400) {
const fetchPromise = fetch(`${Entry.baseUrl || ''}${options.url}${queryString}`, options);
const timeoutPromise = new Promise((_, reject) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ·

Suggested change
const timeoutPromise = new Promise((_, reject) =>
const timeoutPromise = new Promise((_, reject) =>

if (response.status >= 400) {
const fetchPromise = fetch(`${Entry.baseUrl || ''}${options.url}${queryString}`, options);
const timeoutPromise = new Promise((_, reject) =>
setTimeout(() => reject(new Error('Request timeout')), timeout)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <no-undef> reported by reviewdog 🐶
'timeout' is not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants