remove unnecessary .file_type()

This commit is contained in:
slonkazoid 2024-12-24 23:56:36 +03:00
parent 4cecaa7579
commit 239c0a9f43
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -170,7 +170,7 @@ impl PostManager for Blag {
let stat = tokio::fs::metadata(entry.path()).await?;
if stat.file_type().is_file() {
if stat.is_file() {
let mut name = match entry.file_name().into_string() {
Ok(v) => v,
Err(_) => {