lint: const fixes

This commit is contained in:
Girish Ramakrishnan
2024-05-13 17:02:20 +02:00
parent eb5b8b42dc
commit 6eda037544
2 changed files with 4 additions and 4 deletions

View File

@@ -184,7 +184,7 @@ async function checkUpdateRequirements(boxUpdateInfo) {
const result = await apps.list();
for (let app of result) {
for (const app of result) {
const maxBoxVersion = app.manifest.maxBoxVersion;
if (semver.valid(maxBoxVersion) && semver.gt(boxUpdateInfo.version, maxBoxVersion)) {
throw new BoxError(BoxError.BAD_STATE, `Cannot update to v${boxUpdateInfo.version} because ${app.fqdn} has a maxBoxVersion of ${maxBoxVersion}`);