fixes #6204 refactor push just one if

This commit is contained in:
Javi Gallego 2023-10-05 08:36:29 +02:00
parent b95b593292
commit 65bd0197de
1 changed files with 2 additions and 10 deletions

View File

@ -214,19 +214,11 @@ class Push extends Command {
continue;
}
const skipRealm = match & match[1] && match[1] !== realm;
const skipRealm = match[1] && match[1] !== realm;
if (isUndoScript(script))
if (isUndoScript(script) || skipRealm)
continue;
if (match[1]) {
if (skipRealm)
continue;
if (!realm)
continue;
}
const [[row]] = await conn.query(
`SELECT errorNumber FROM versionLog
WHERE code = ?