From 65bd0197de8b2de228645064789b23aafd17dd81 Mon Sep 17 00:00:00 2001 From: jgallego Date: Thu, 5 Oct 2023 08:36:29 +0200 Subject: [PATCH] fixes #6204 refactor push just one if --- myt-push.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/myt-push.js b/myt-push.js index 9fd0507..ec96400 100644 --- a/myt-push.js +++ b/myt-push.js @@ -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 = ?