chore: remove unused error (#20)
This commit is contained in:
parent
0a3fc7c3cd
commit
56c68caa93
@ -57,11 +57,10 @@ module.exports = function (app) {
|
|||||||
res.type('txt').send(data.toString());
|
res.type('txt').send(data.toString());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
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