diff --git a/server/portal_server.js b/server/portal_server.js index 3f4fc812..7ade9e0a 100644 --- a/server/portal_server.js +++ b/server/portal_server.js @@ -35,7 +35,7 @@ app.get('/exists/:id', (req, res) => { let id = req.params.id; storage.exists(id).then(doesExist => { res.sendStatus(doesExist ? 200 : 404); - }) + }); }); app.get('/download/:id', (req, res) => { diff --git a/server/storage.js b/server/storage.js index ad07de04..4405482f 100644 --- a/server/storage.js +++ b/server/storage.js @@ -7,7 +7,6 @@ const path = require('path'); const fetch = require('node-fetch'); const crypto = require('crypto'); - let notLocalHost = conf.notLocalHost; const mozlog = require('./log.js'); @@ -19,7 +18,6 @@ const redis_client = redis.createClient({ host: conf.redis_host }); - redis_client.on('error', err => { log.info('Redis: ', err); }); @@ -61,7 +59,7 @@ function filename(id) { function exists(id) { return new Promise((resolve, reject) => { redis_client.exists(id, (rediserr, reply) => { - resolve(reply === 1) + resolve(reply === 1); }); }); }