fixed linting

This commit is contained in:
Rahul Somasundaram
2021-08-24 07:28:17 +05:30
parent be87c45f27
commit 8944609b63
4 changed files with 7 additions and 9 deletions

View File

@ -343,7 +343,6 @@ const internalCertificate = {
* @returns {Promise}
*/
download: (access, data) => {
return new Promise((resolve, reject) => {
access.can('certificates:get', data)
.then(() => {
@ -366,8 +365,6 @@ const internalCertificate = {
fileName: opName
};
resolve(resp);
}).catch((err) => {
reject(err);
});
} else {
throw new error.ValidationError('Only Let\'sEncrypt certificates can be renewed');
@ -377,10 +374,10 @@ const internalCertificate = {
},
/**
* @param {String} source
* @param {String} out
* @returns {Promise}
*/
* @param {String} source
* @param {String} out
* @returns {Promise}
*/
zipDirectory(source, out) {
const archive = archiver('zip', { zlib: { level: 9 } });
const stream = fs.createWriteStream(out);