no need to check for ext before redirect

master
Tomáš Mládek 2020-12-28 19:31:45 +01:00
parent 5275f54be0
commit 874219f22f
1 changed files with 0 additions and 1 deletions

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()