Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imaitland committed Mar 25, 2024
1 parent eafa5b7 commit d5ff788
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/http/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ impl<'js> URL<'js> {
};

match base_string.parse::<Url>() {
Ok(base_url) => {
match base_url.join(&path_string) {
Ok(_) => true, // Joining was successful
Err(_) => false, // There was a parsing error
}
}
Ok(base_url) => base_url.join(&path_string).is_ok(),
Err(_) => false, // Base URL parsing failed
}
} else {
Expand Down

0 comments on commit d5ff788

Please sign in to comment.