From 874219f22f66ddbf13f6c6b7cbd656d1274b13e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Mon, 28 Dec 2020 19:31:45 +0100 Subject: [PATCH] no need to check for ext before redirect --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 14164b1..6840c2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()