Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kadikraman committed Dec 20, 2024
1 parent 3c59c17 commit 485677a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/eas-cli/src/worker/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export async function uploadAsync(params: UploadParams): Promise<UploadResult> {
return retry(error);
}

const getErrorMessage = async () => {
const getErrorMessageAsync = async () => {

Check warning on line 112 in packages/eas-cli/src/worker/upload.ts

View workflow job for this annotation

GitHub Actions / Test with Node 22

Missing return type on function
const body = await response.json().catch(() => null);
return body?.error ?? `Upload of "${filePath}" failed: ${response.statusText}`;
}

Check warning on line 115 in packages/eas-cli/src/worker/upload.ts

View workflow job for this annotation

GitHub Actions / Test with Node 22

Insert `;`
Expand All @@ -120,12 +120,12 @@ export async function uploadAsync(params: UploadParams): Promise<UploadResult> {
response.status === 429 ||
(response.status >= 500 && response.status <= 599)
) {
return retry(new Error(await getErrorMessage()));
return retry(new Error(await getErrorMessageAsync()));
} else if (response.status === 413) {
const message = `Upload of "${filePath}" failed: File size exceeded the upload limit`;
throw new Error(message);
} else if (!response.ok) {
throw new Error(await getErrorMessage());
throw new Error(await getErrorMessageAsync());
}

return {
Expand Down

0 comments on commit 485677a

Please sign in to comment.