From e9ce07a414e29d7b60a04f6a03f4fb2e6cdc6a8b Mon Sep 17 00:00:00 2001 From: thomkeh <7741417+thomkeh@users.noreply.github.com> Date: Sun, 15 Jul 2018 12:04:01 +0100 Subject: [PATCH] Rename function to make code clearer --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 60af0d5..4192a4b 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@ for (const certificateFile of certificateFiles) { keys[certificateFile.name] = await readFile(certificateFile) } - let onc = convert(connName, ovpn, keys) + let onc = constructOnc(connName, ovpn, keys) output.value = JSON.stringify(onc, null, 2) } @@ -202,14 +202,14 @@ } /** - * Convert the parsed OVPN file to ONC structure + * Construct the ONC structure from the name, the parsed ovpn file and the keys * * @param {string} name Name of the connection * @param {Object} ovpn The parsed OVPN file * @param {Object} keys Strings with keys, indexed by key name * @return {Object} The converted ONC structure */ - function convert (name, ovpn, keys) { + function constructOnc (name, ovpn, keys) { if (!ovpn.client) { console.warn('Is this a server file?') }