SonarCloud fixes (#4235)

This commit is contained in:
MichalKinas
2024-11-13 14:26:24 +01:00
committed by GitHub
parent 27e318aaa0
commit 90ca3707f7
7 changed files with 9 additions and 10 deletions

View File

@@ -34,12 +34,12 @@ module.exports = async ({ exec, github, dependencyName, tag }) => {
}
}
const latestPkgToUpdate = availablePackages.find((package) => package.name === matchedPkgVersion);
const latestPkgToUpdate = availablePackages.find((pkg) => pkg.name === matchedPkgVersion);
if (localVersion === latestPkgToUpdate?.name) {
return { hasNewVersion: 'false' };
} else {
const findLocalVersionOnRemote = availablePackages.find((package) => package.name === localVersion);
const findLocalVersionOnRemote = availablePackages.find((pkg) => pkg.name === localVersion);
let rangeInDays = 'N/A';
if (findLocalVersionOnRemote !== undefined) {
const creationLocal = new Date(findLocalVersionOnRemote.created_at);