mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-16 03:04:53 -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
|
@ -30,7 +30,7 @@ npm.load({}, async () => {
|
|||
const pad = await padManager.getPad(padId);
|
||||
|
||||
// check if the pad has a pool
|
||||
if (pad.pool === undefined) {
|
||||
if (pad.pool == null) {
|
||||
console.error(`[${pad.id}] Missing attribute pool`);
|
||||
continue;
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ npm.load({}, async () => {
|
|||
}
|
||||
|
||||
// check if there is a atext in the keyRevisions
|
||||
if (revisions[keyRev].meta === undefined || revisions[keyRev].meta.atext === undefined) {
|
||||
if (revisions[keyRev].meta == null || revisions[keyRev].meta.atext == null) {
|
||||
console.error(`[${pad.id}] Missing atext in revision ${keyRev}`);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue