mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
refactor(oxlint): remove extra if check in Walkdir (#7989)
This commit is contained in:
parent
1cf7b83431
commit
58e7777814
1 changed files with 1 additions and 3 deletions
|
|
@ -55,9 +55,7 @@ impl ignore::ParallelVisitor for WalkCollector {
|
|||
fn visit(&mut self, entry: Result<ignore::DirEntry, ignore::Error>) -> ignore::WalkState {
|
||||
match entry {
|
||||
Ok(entry) => {
|
||||
if entry.file_type().is_some_and(|ft| !ft.is_dir())
|
||||
&& Walk::is_wanted_entry(&entry, &self.extensions)
|
||||
{
|
||||
if Walk::is_wanted_entry(&entry, &self.extensions) {
|
||||
self.paths.push(entry.path().to_path_buf().into_boxed_path());
|
||||
}
|
||||
ignore::WalkState::Continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue