From 22ffe108e38fba33502cd1292340ea4314feed90 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:28:08 -0700 Subject: [PATCH] Update retrieve-label-directory.js Refactored non-variatic funct, renamed funct --- github-actions/utils/retrieve-label-directory.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/github-actions/utils/retrieve-label-directory.js b/github-actions/utils/retrieve-label-directory.js index eb11291746..ba4a4a25c8 100644 --- a/github-actions/utils/retrieve-label-directory.js +++ b/github-actions/utils/retrieve-label-directory.js @@ -9,7 +9,7 @@ var labelData; * @param {Array} labelKeys - List of reference names to look up display names * @return {Array} labelName - Display name for each label */ -function labelRetrieveNames(...labelKeys) { +function retrieveLabelName(labelKey) { // Retrieve label directory if not read already if (labelData === undefined) { @@ -18,7 +18,6 @@ function labelRetrieveNames(...labelKeys) { labelData = JSON.parse(rawData); } - let labelKey = labelKeys[0]; let labelName = ''; try { @@ -31,4 +30,4 @@ function labelRetrieveNames(...labelKeys) { return labelName; } -module.exports = labelRetrieveNames; +module.exports = retrieveLabelName;