Truly independent web browser
LibWeb: Remove an unreachable negative index check in `env()`
Callum Law0cc19e3f80fd
diff --git a/Libraries/LibWeb/Rust/src/css/custom_properties.rs b/Libraries/LibWeb/Rust/src/css/custom_properties.rsindex a4502fff9ee..b8199fc9404 100644--- a/Libraries/LibWeb/Rust/src/css/custom_properties.rs+++ b/Libraries/LibWeb/Rust/src/css/custom_properties.rs@@ -1727,9 +1727,6 @@ fn replace_env_function(let digit = unit.checked_sub(u16::from(b'0'))?;(digit <= 9).then_some(value.checked_mul(10)?.checked_add(i32::from(digit))?)})?;- if index < 0 {- return None;- }indices.push(index);}Some(indices)