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());
|
||||
});
|
||||
});
|
||||
|
||||
let error;
|
||||
|
||||
app.get('/_api/get-tests', cors(), function(req, res, next){
|
||||
console.log(error);
|
||||
if(!error && process.env.NODE_ENV === 'test') return next();
|
||||
console.log('requested');
|
||||
if(process.env.NODE_ENV === 'test') return next();
|
||||
res.json({status: 'unavailable'});
|
||||
},
|
||||
function(req, res, next){
|
||||
|
Loading…
Reference in New Issue
Block a user