Lints
This commit is contained in:
parent
baa22d746a
commit
be53c7f0db
|
|
@ -83,10 +83,8 @@ impl<'a> Stream<'a> {
|
|||
if !self.options.exists {
|
||||
return true;
|
||||
}
|
||||
let resolver = match self.options.resolve_symlinks {
|
||||
true => fs::metadata,
|
||||
false => fs::symlink_metadata,
|
||||
};
|
||||
let resolver =
|
||||
if self.options.resolve_symlinks { fs::metadata } else { fs::symlink_metadata };
|
||||
resolver(path).map(|metadata| metadata.is_dir()).unwrap_or_default()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue