log: do not show app update message for no updates

This commit is contained in:
Girish Ramakrishnan
2020-09-09 19:26:45 -07:00
parent 722808a0e4
commit e730a6e282
2 changed files with 3 additions and 3 deletions

View File

@@ -32,8 +32,8 @@ function loadState() {
return state || { };
}
function saveState(mailedUser) {
safe.fs.writeFileSync(paths.UPDATE_CHECKER_FILE, JSON.stringify(mailedUser, null, 4), 'utf8');
function saveState(state) {
safe.fs.writeFileSync(paths.UPDATE_CHECKER_FILE, JSON.stringify(state, null, 4), 'utf8');
}
function getUpdateInfo() {