Enable no-unsafe-finally lint

This commit is contained in:
valadaptive 2023-12-02 09:12:38 -05:00
parent e7ae1c4787
commit 367f3dba27
5 changed files with 5 additions and 14 deletions

View File

@ -67,7 +67,6 @@ module.exports = {
'no-self-assign': 'off',
'no-unsafe-negation': 'off',
'no-constant-condition': 'off',
'no-empty': 'off',
'no-unsafe-finally': 'off'
'no-empty': 'off'
}
};

View File

@ -1604,9 +1604,7 @@ export async function getGroupPastChats(groupId) {
} catch (err) {
console.error(err);
}
finally {
return chats;
}
return chats;
}
export async function openGroupChat(groupId, chatId) {

View File

@ -1696,9 +1696,7 @@ async function calculateLogitBias() {
result = {};
console.error(err);
}
finally {
return result;
}
return result;
}
class TokenHandler {

View File

@ -118,9 +118,7 @@ function registerEndpoints(app, jsonParser) {
catch (err) {
console.log(err);
}
finally {
return response.send(output);
}
return response.send(output);
});
/**

View File

@ -133,9 +133,7 @@ function registerEndpoints(app, jsonParser, urlencodedParser) {
catch (err) {
console.log(err);
}
finally {
return response.send(sprites);
}
return response.send(sprites);
});
app.post('/api/sprites/delete', jsonParser, async (request, response) => {