This commit is contained in:
Girish Ramakrishnan
2026-02-05 23:22:26 +01:00
parent aa362477e8
commit 3d7a5676d8
+1 -1
View File
@@ -86,7 +86,7 @@ async function getAppUpdate(app, options) {
const sortedVersions = Object.keys(versions).sort(manifestFormat.packageVersionCompare);
const idx = sortedVersions.findIndex(v => v === app.manifest.version);
if (idx === -1) throw new BoxError(BoxError.EXTERNAL_ERROR, 'No such version')
if (idx === -1) throw new BoxError(BoxError.EXTERNAL_ERROR, 'No such version');
if (idx === sortedVersions.length-1) return null; // no update
const nextVersion = versions[sortedVersions[idx+1]];