lint
This commit is contained in:
+1
-1
@@ -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]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user