Skip to content

Commit

Permalink
Merge pull request #1439 from CongLuanTran/master
Browse files Browse the repository at this point in the history
Fix  wrong logic in from_hwmon() function
  • Loading branch information
GuillaumeGomez authored Dec 26, 2024
2 parents 6ddf3fe + c88a878 commit 5421548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/linux/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl ComponentInner {
let dir = read_dir(folder).ok()?;
let mut matchings: HashMap<u32, Component> = HashMap::with_capacity(10);
for entry in dir.flatten() {
if !entry.file_type().is_ok_and(|file_type| file_type.is_dir()) {
if !entry.file_type().is_ok_and(|file_type| !file_type.is_dir()) {
continue;
}

Expand Down

0 comments on commit 5421548

Please sign in to comment.