From df41e690ae0e077e70508fdfecbf9eb6c32c6755 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Thu, 2 Mar 2023 01:08:52 +0100 Subject: [PATCH] fix conditional cleaning class weight --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index bcea147..8afec2b 100644 --- a/src/util.rs +++ b/src/util.rs @@ -552,7 +552,7 @@ impl Util { let weight = Self::get_class_weight(node); if weight < 0 { - return false; + return true; } if Self::get_char_count(node, ',') < 10 {