Rm match redundancy

This commit is contained in:
Alejandro Osornio 2023-01-14 10:47:39 -06:00 committed by Esteban Blanc
parent 6e9bd7dc4e
commit d7aa100c51

View file

@ -40,8 +40,7 @@ pub fn to_path(url: &Url, with_fragment: bool) -> String {
match (url.fragment(), with_fragment) {
(Some(fragment), true) => format!("{}{}/{}#{}", url_domain, parent, filename, fragment),
(None, true) => format!("{}{}/{}", url_domain, parent, filename),
(_, false) => format!("{}{}/{}", url_domain, parent, filename),
(_, _) => format!("{}{}/{}", url_domain, parent, filename),
}
}