From aaff97c184edc819d18dbc6566a90e1c129b7a3e Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Wed, 1 Mar 2023 01:55:26 +0100 Subject: [PATCH] cleanup --- src/util.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/util.rs b/src/util.rs index cff6456..bcea147 100644 --- a/src/util.rs +++ b/src/util.rs @@ -202,14 +202,13 @@ impl Util { for mut node in node_vec { let tag_name = node.get_name(); - if constants::EMBED_TAG_NAMES.contains(tag_name.to_uppercase().as_str()) { - if node + if constants::EMBED_TAG_NAMES.contains(tag_name.to_uppercase().as_str()) + && node .get_attributes() .iter() .any(|(_name, value)| constants::VIDEOS.is_match(value)) - { - continue; - } + { + continue; } node.unlink(); }