Skip to content
Snippets Groups Projects
Commit 606c3074 authored by Andrey Azov's avatar Andrey Azov
Browse files

Remove premature response

parent b76fb532
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@ module.exports = async (req, res) => {
let index;
try {
index = require('build/indices/index.json');
res.json({ success: true });
} catch (error) {
const files = fs.readdirSync('.');
res.json({ error, files });
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment