mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Enable no-unsafe-finally lint
This commit is contained in:
@ -118,9 +118,7 @@ function registerEndpoints(app, jsonParser) {
|
||||
catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
finally {
|
||||
return response.send(output);
|
||||
}
|
||||
return response.send(output);
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -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) => {
|
||||
|
Reference in New Issue
Block a user