Skip to content

Commit

Permalink
chore: Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
vadorovsky committed Sep 11, 2024
1 parent abccc00 commit b874cde
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/bpf-common/src/containers/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,10 @@ fn find_subdirs<P: AsRef<Path>>(parent_path: P) -> Vec<PathBuf> {

if parent_path.as_ref().is_dir() {
if let Ok(entries) = fs::read_dir(parent_path) {
for entry in entries {
if let Ok(entry) = entry {
let path = entry.path();
if path.is_dir() {
subdirectories.push(path);
}
for entry in entries.flatten() {
let path = entry.path();
if path.is_dir() {
subdirectories.push(path);
}
}
}
Expand Down

0 comments on commit b874cde

Please sign in to comment.