From b979ca01d5a8728f0821f5e41a3db674dff14ccf Mon Sep 17 00:00:00 2001 From: ocavue Date: Sun, 2 Aug 2020 20:21:55 +0800 Subject: [PATCH] fix: remove unused comparison code --- lib/rules_inline/balance_pairs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/rules_inline/balance_pairs.js b/lib/rules_inline/balance_pairs.js index 8ee8695..8d649bf 100644 --- a/lib/rules_inline/balance_pairs.js +++ b/lib/rules_inline/balance_pairs.js @@ -38,9 +38,7 @@ function processDelimiters(state, delimiters) { if (newMinOpenerIdx === -1) newMinOpenerIdx = openerIdx; - if (opener.open && - opener.end < 0 && - opener.level === closer.level) { + if (opener.open && opener.end < 0) { isOddMatch = false;