Do not log if no update is available

This commit is contained in:
Johannes Zellner
2016-11-14 17:00:30 +01:00
parent a25b884dbb
commit f16d1c80f4

View File

@@ -140,8 +140,14 @@ function checkAppUpdates(callback) {
return iteratorDone(); // continue to next
}
if (!updateInfo || !safe.query(updateInfo, 'manifest.version')) {
debug('Skipping null or malformed update of app %s. got %j', app.id, updateInfo);
// skip if no next version is found
if (!updateInfo) {
delete gAppUpdateInfo[app.id];
return iteratorDone();
}
if (!safe.query(updateInfo, 'manifest.version')) {
debug('Skipping malformed update of app %s. got %j', app.id, updateInfo);
delete gAppUpdateInfo[app.id];
return iteratorDone();
}