Skip to content

Commit

Permalink
Update retrieve-label-directory.js
Browse files Browse the repository at this point in the history
Refactored non-variatic funct, renamed  funct
  • Loading branch information
t-will-gillis authored Oct 14, 2024
1 parent 1712e1a commit 22ffe10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions github-actions/utils/retrieve-label-directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -18,7 +18,6 @@ function labelRetrieveNames(...labelKeys) {
labelData = JSON.parse(rawData);
}

let labelKey = labelKeys[0];
let labelName = '';

try {
Expand All @@ -31,4 +30,4 @@ function labelRetrieveNames(...labelKeys) {
return labelName;
}

module.exports = labelRetrieveNames;
module.exports = retrieveLabelName;

0 comments on commit 22ffe10

Please sign in to comment.