From 974e4e5f0837452d31624490efdad40d0184deb9 Mon Sep 17 00:00:00 2001 From: Luca Iaconelli Date: Tue, 26 Jan 2021 15:39:55 +0100 Subject: [PATCH] chore: inverted an if --- lib/module.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/module.js b/lib/module.js index 7697a4e..b67198e 100644 --- a/lib/module.js +++ b/lib/module.js @@ -55,9 +55,9 @@ export default function nuxtPruneHtml( for( const s of selectors ) { - const selector = ! selectorToKeep - ? s - : `${ s }:not(${ selectorToKeep })` + const selector = selectorToKeep + ? `${ s }:not(${ selectorToKeep })` + : s ; $(