diff --git a/libs/live-fns/nuget.js b/libs/live-fns/nuget.js index e8373af..fd08783 100644 --- a/libs/live-fns/nuget.js +++ b/libs/live-fns/nuget.js @@ -4,15 +4,15 @@ const semColor = require('../utils/sem-color.js') module.exports = async function (method, project, channel) { const endpoint = `https://api.nuget.org/v3-flatcontainer/${project}/index.json` const { versions } = await axios.get(endpoint).then(res => res.data) + const unknownBadgeData = { + subject: 'nuget', + status: 'unknown', + color: 'grey' + } switch (method) { case 'v': - var version = '' - var unknownBadgeData = { - subject: 'nuget', - status: 'unknown', - color: 'grey' - } + let version = '' switch (channel) { case 'latest':