Skip to content

Commit

Permalink
lint: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
XOR-op committed Mar 21, 2024
1 parent 86d0501 commit 79a75a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boltconn/src/intercept/url_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ impl UrlEngine {
}
replaced_url?;

let Some(chunks) = ReplacedChunk::parse_chunks(&regex, replaced_url.unwrap()) else {
return None;
};
let chunks = ReplacedChunk::parse_chunks(&regex, replaced_url.unwrap())?;
Some(Self {
mod_type,
regex,
Expand Down

0 comments on commit 79a75a5

Please sign in to comment.