From de976775cd3adcd6c9b7fd22f046f769657f7501 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Mon, 12 Dec 2022 18:11:39 -0800 Subject: [PATCH] feat: removed unclear return value --- src/file_operations.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) } }