From 372e7bcbddd4d7206412860fc9ecdf23cf4a68c2 Mon Sep 17 00:00:00 2001 From: Cyrille Date: Thu, 9 May 2019 22:18:59 +0100 Subject: [PATCH] Updated method names. --- lib/certificates/set.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/certificates/set.js b/lib/certificates/set.js index 4805c11..028fa36 100644 --- a/lib/certificates/set.js +++ b/lib/certificates/set.js @@ -3,7 +3,7 @@ const s3 = new AWS.S3({ apiVersion: "2006-03-01" }); const pathHelper = require("../pathHelper"); const fileNames = require("../fileNames"); -setObjects = (opts, options) => { +const getObjects = (opts, options) => { return [ { Key: pathHelper.certificatesPath(options, opts.subject, fileNames.cert) @@ -24,7 +24,7 @@ setObjects = (opts, options) => { ]; }; -setPromises = (objects, options) => { +const getPromises = (objects, options) => { let promises = []; for (let i = 0; i < objects.length; i++) { @@ -44,8 +44,8 @@ setPromises = (objects, options) => { module.exports.set = (opts, options) => { console.log("certificates.set for ", opts.subject); - const objects = setObjects(opts, options); - const promises = setPromises(objects, options); + const objects = getObjects(opts, options); + const promises = getPromises(objects, options); return Promise.all(promises).then((values) => { return null;