no need to check for ext before redirect

This commit is contained in:
Tomáš Mládek 2020-12-28 19:31:45 +01:00
parent 5275f54be0
commit 874219f22f

View file

@ -168,7 +168,6 @@ async fn render(
// Redirect to ".md" version if requested path matches a .md file without the extension
if !full_path.exists()
&& full_path.extension().is_none()
&& Path::new(&format!("{}.md", full_path.to_str().unwrap())).exists()
{
return Ok(HttpResponse::Found()