fix(salix): refs #7272 #7272 Errors when Token not exists
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-05-03 08:24:10 +02:00
parent 70c33d9040
commit da3c4cb8fc
1 changed files with 1 additions and 3 deletions

View File

@ -47,8 +47,7 @@ export default class Auth {
switch (err.status) { switch (err.status) {
case 400: case 400:
case 401: case 401:
redirectToLogin(); return redirectToLogin();
break;
default: default:
return new Promise(resolve => { return new Promise(resolve => {
setTimeout(() => { setTimeout(() => {
@ -58,7 +57,6 @@ export default class Auth {
}, 2000); }, 2000);
}); });
} }
console.error(err);
}); });
}; };
return loadWithRetry(); return loadWithRetry();