Code styling changes

This commit is contained in:
2023-07-13 18:38:31 +03:00
parent 9437c44054
commit 7b0ccc525c
33 changed files with 358 additions and 387 deletions

View File

@ -4,11 +4,11 @@ const handleHTTPErrors = (res: Response) => {
if (!res.ok) {
switch (res.status) {
case 401:
throw new Error("Ошибка авторизации")
throw new Error('Ошибка авторизации')
case 404:
throw new Error("Объект не найден")
throw new Error('Объект не найден')
default: {
throw new Error("Ошибка ответа от сервера")
throw new Error('Ошибка ответа от сервера')
}
}
}