mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-20 06:00:40 +01:00
Enable no-unsafe-finally lint
This commit is contained in:
parent
e7ae1c4787
commit
367f3dba27
@ -67,7 +67,6 @@ module.exports = {
|
|||||||
'no-self-assign': 'off',
|
'no-self-assign': 'off',
|
||||||
'no-unsafe-negation': 'off',
|
'no-unsafe-negation': 'off',
|
||||||
'no-constant-condition': 'off',
|
'no-constant-condition': 'off',
|
||||||
'no-empty': 'off',
|
'no-empty': 'off'
|
||||||
'no-unsafe-finally': 'off'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1604,9 +1604,7 @@ export async function getGroupPastChats(groupId) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
finally {
|
|
||||||
return chats;
|
return chats;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function openGroupChat(groupId, chatId) {
|
export async function openGroupChat(groupId, chatId) {
|
||||||
|
@ -1696,9 +1696,7 @@ async function calculateLogitBias() {
|
|||||||
result = {};
|
result = {};
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
finally {
|
|
||||||
return result;
|
return result;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class TokenHandler {
|
class TokenHandler {
|
||||||
|
@ -118,9 +118,7 @@ function registerEndpoints(app, jsonParser) {
|
|||||||
catch (err) {
|
catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
finally {
|
|
||||||
return response.send(output);
|
return response.send(output);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -133,9 +133,7 @@ function registerEndpoints(app, jsonParser, urlencodedParser) {
|
|||||||
catch (err) {
|
catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
finally {
|
|
||||||
return response.send(sprites);
|
return response.send(sprites);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post('/api/sprites/delete', jsonParser, async (request, response) => {
|
app.post('/api/sprites/delete', jsonParser, async (request, response) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user