fixed linting

This commit is contained in:
Rahul Somasundaram 2021-08-23 09:17:42 +05:30
parent e5a3b5ee2f
commit 7b67ef3015
No known key found for this signature in database
GPG Key ID: D6DAC16BA31FD0C5

View File

@ -342,21 +342,21 @@ const internalCertificate = {
* @returns {Promise}
*/
download: (data) => {
const downloadName = "npm-" + data.id + "-" + `${Date.now()}.zip`;
const downloadName = 'npm-' + data.id + '-' + `${Date.now()}.zip`;
const opName = '/tmp/' + downloadName;
const zipDirectory = "/etc/letsencrypt/live/npm-" + data.id
const zipDirectory = '/etc/letsencrypt/live/npm-' + data.id;
return new Promise((resolve, reject) => {
internalCertificate.zipDirectory(zipDirectory, opName)
.then(() => {
logger.debug("zip completed : ", opName)
logger.debug('zip completed : ', opName);
const resp = {
fileName: opName
}
resolve(resp)
}).catch(err => {
reject(err)
})
};
resolve(resp);
}).catch((err) => {
reject(err);
});
});
},
@ -372,7 +372,7 @@ const internalCertificate = {
return new Promise((resolve, reject) => {
archive
.directory(source, false)
.on('error', err => reject(err))
.on('error', (err) => reject(err))
.pipe(stream);
stream.on('close', () => resolve());