From 7df8f45489d288fbf9816d567e681b5855aeef8a Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 1 Mar 2017 15:18:26 -0800 Subject: [PATCH] Fix eslint --- .eslintignore | 1 + lib/factory.js | 4 ++-- lib/storage-handler.js | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index e69de29..3c3629e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -0,0 +1 @@ +node_modules diff --git a/lib/factory.js b/lib/factory.js index 822bf60..52d1510 100644 --- a/lib/factory.js +++ b/lib/factory.js @@ -91,7 +91,7 @@ function createClient(options) { // Fall back to pkgcloud handler = require('pkgcloud').storage; } - } catch(err) { + } catch (err) { // Fall back to pkgcloud handler = require('pkgcloud').storage; } @@ -113,7 +113,7 @@ function getProvider(provider) { try { // Fall back to using an external provider return require(provider); - } catch(err) { + } catch (err) { // Fall back to pkgcloud return require('pkgcloud').providers[provider]; } diff --git a/lib/storage-handler.js b/lib/storage-handler.js index b5a6240..f14a8f7 100644 --- a/lib/storage-handler.js +++ b/lib/storage-handler.js @@ -287,7 +287,6 @@ exports.download = function(provider, req, res, container, file, cb) { }; }; - function processError(err, fileName) { if (err.code === 'ENOENT') { err.statusCode = err.status = 404;