Fix eslint

This commit is contained in:
Raymond Feng 2017-03-01 15:18:26 -08:00
parent aab81590ed
commit 656fba9d51
3 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1 @@
node_modules

View File

@ -91,7 +91,7 @@ function createClient(options) {
// Fall back to pkgcloud // Fall back to pkgcloud
handler = require('pkgcloud').storage; handler = require('pkgcloud').storage;
} }
} catch(err) { } catch (err) {
// Fall back to pkgcloud // Fall back to pkgcloud
handler = require('pkgcloud').storage; handler = require('pkgcloud').storage;
} }
@ -113,7 +113,7 @@ function getProvider(provider) {
try { try {
// Fall back to using an external provider // Fall back to using an external provider
return require(provider); return require(provider);
} catch(err) { } catch (err) {
// Fall back to pkgcloud // Fall back to pkgcloud
return require('pkgcloud').providers[provider]; return require('pkgcloud').providers[provider];
} }

View File

@ -287,7 +287,6 @@ exports.download = function(provider, req, res, container, file, cb) {
}; };
}; };
function processError(err, fileName) { function processError(err, fileName) {
if (err.code === 'ENOENT') { if (err.code === 'ENOENT') {
err.statusCode = err.status = 404; err.statusCode = err.status = 404;