remove unnecessary .file_type()
This commit is contained in:
parent
4cecaa7579
commit
239c0a9f43
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ impl PostManager for Blag {
|
||||||
|
|
||||||
let stat = tokio::fs::metadata(entry.path()).await?;
|
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() {
|
let mut name = match entry.file_name().into_string() {
|
||||||
Ok(v) => v,
|
Ok(v) => v,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
|
|
Loading…
Reference in a new issue