Skip to content

Commit

Permalink
linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 13, 2024
1 parent 931c9e1 commit 37f2f8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/test/utils/sentryApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const fetchFromSentry = async (url: string): Promise<Response> => {
setTimeout(() => {
retries++;
// eslint-disable-next-line no-console
console.log(`API request (${url}) failed with: ${response.statusText}. Retrying. Retry number: ${retries}/${RETRY_COUNT}`);
console.log(
`API request (${url}) failed with: ${response.statusText}. Retrying. Retry number: ${retries}/${RETRY_COUNT}`,
);
resolve(request().then(retrier));
}, RETRY_INTERVAL);
} else {
Expand All @@ -45,11 +47,11 @@ const fetchFromSentry = async (url: string): Promise<Response> => {
});

return request().then(retrier);
}
};

const fetchEvent = async (eventId: string): Promise<ApiEvent> => {
const response = await fetchFromSentry(`${baseUrl}/events/${eventId}/`);
const json = await response.json()
const json = await response.json();
return json as ApiEvent;
};

Expand Down

0 comments on commit 37f2f8d

Please sign in to comment.