diff --git a/boltconn/src/intercept/url_engine.rs b/boltconn/src/intercept/url_engine.rs index ade08e3..228bf4a 100644 --- a/boltconn/src/intercept/url_engine.rs +++ b/boltconn/src/intercept/url_engine.rs @@ -31,9 +31,7 @@ impl UrlEngine { } replaced_url?; - let Some(chunks) = ReplacedChunk::parse_chunks(®ex, replaced_url.unwrap()) else { - return None; - }; + let chunks = ReplacedChunk::parse_chunks(®ex, replaced_url.unwrap())?; Some(Self { mod_type, regex,