making deepsource happy

This commit is contained in:
wukko
2023-08-11 22:07:34 +06:00
parent 998ab635d3
commit c5681bba94
3 changed files with 5 additions and 8 deletions

View File

@@ -134,7 +134,6 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
})
return res.status(j.status).json(j.body);
}
break;
case 'serverInfo':
return res.status(200).json({
version: version,
@@ -145,13 +144,11 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
cors: process.env.cors && process.env.cors === "0" ? 0 : 1,
startTime: `${startTimestamp}`
});
break;
default:
let j = apiJSON(0, {
t: "unknown response type"
})
return res.status(j.status).json(j.body);
break;
}
} catch (e) {
return res.status(500).json({