1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Chore: Add no-throw-literal and prefer-promise-reject-errors eslint rules (#10371)

This commit is contained in:
Henry Heino
2024-04-25 05:32:37 -07:00
committed by GitHub
parent bce71a00e9
commit 0670ad92d7
7 changed files with 11 additions and 6 deletions

View File

@@ -252,6 +252,7 @@ class FileApiDriverAmazonS3 {
output = await response.text();
// we need to make sure that errors get thrown as we are manually fetching above.
if (!response.ok) {
// eslint-disable-next-line no-throw-literal -- Old code before rule was applied
throw { name: response.statusText, output: output };
}
}