diff --git a/src/file_operations.rs b/src/file_operations.rs index 8b6e4e0..2992740 100644 --- a/src/file_operations.rs +++ b/src/file_operations.rs @@ -69,11 +69,7 @@ impl Iterator for MusicScanner { .unwrap(); // return the found files - if files.len() > 0 { - Some(files) - } else { - None - } + Some(files) } }