redundant

pull/14/head
chris west 4 years ago
parent 51f401394a
commit a8c8b255a4

@ -228,10 +228,8 @@ pub fn type_for_url(url: &str) -> Type {
}
if let Some(idx) = url.find('/') {
if url.len() > idx {
if let Some(t) = url.chars().nth(idx + 1) {
return Type::from(t).unwrap_or(Type::Menu);
}
if let Some(t) = url.chars().nth(idx + 1) {
return Type::from(t).unwrap_or(Type::Menu);
}
}

Loading…
Cancel
Save