mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update javascript/ql/src/Security/CWE-730/examples/server-crash.GOOD-B.js
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
committed by
GitHub
parent
718f6eb3fd
commit
3f3962f7a9
@@ -1,6 +1,6 @@
|
||||
// ...
|
||||
express().post("/save", async (req, res) => {
|
||||
if (await fs.promises.exists(rootDir)) {
|
||||
if (!(await fs.promises.exists(rootDir))) {
|
||||
console.error(`Server setup is corrupted, ${rootDir} does not exist!`);
|
||||
res.status(500);
|
||||
res.end();
|
||||
|
||||
Reference in New Issue
Block a user