Fix eslint
This commit is contained in:
parent
aab81590ed
commit
656fba9d51
|
@ -0,0 +1 @@
|
|||
node_modules
|
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue