mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
bin scripts: compare against null, not undefined
This commit is contained in:
parent
5bcd6f44a5
commit
f03c4bd7f7
3 changed files with 7 additions and 9 deletions
|
@ -55,9 +55,7 @@ npm.load({}, async () => {
|
|||
const revision = await db.get(`pad:${padId}:revs:${revNum}`);
|
||||
// check if there is a atext in the keyRevisions
|
||||
if (~keyRevisions.indexOf(revNum) &&
|
||||
(revision === undefined ||
|
||||
revision.meta === undefined ||
|
||||
revision.meta.atext === undefined)) {
|
||||
(revision == null || revision.meta == null || revision.meta.atext == null)) {
|
||||
console.error(`No atext in key revision ${revNum}`);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue