mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-11 11:13:12 +08:00
pre-commit
This commit is contained in:
@@ -11,8 +11,8 @@ const handler = async (req, res) => {
|
||||
|
||||
const { id } = req.query;
|
||||
|
||||
if(!id){
|
||||
res.status(400).end()
|
||||
if (!id) {
|
||||
res.status(400).end();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ const handler = async (req, res) => {
|
||||
|
||||
const message = await messageRes.json();
|
||||
|
||||
if(!message.parent_id){
|
||||
if (!message.parent_id) {
|
||||
res.status(404).end();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user