chore: remove unused error (#20)
This commit is contained in:
parent
0a3fc7c3cd
commit
56c68caa93
@ -58,10 +58,9 @@ module.exports = function (app) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
let error;
|
|
||||||
app.get('/_api/get-tests', cors(), function(req, res, next){
|
app.get('/_api/get-tests', cors(), function(req, res, next){
|
||||||
console.log(error);
|
console.log('requested');
|
||||||
if(!error && process.env.NODE_ENV === 'test') return next();
|
if(process.env.NODE_ENV === 'test') return next();
|
||||||
res.json({status: 'unavailable'});
|
res.json({status: 'unavailable'});
|
||||||
},
|
},
|
||||||
function(req, res, next){
|
function(req, res, next){
|
||||||
|
Loading…
Reference in New Issue
Block a user