summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jv.rs20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs
index e336092..14e99a8 100644
--- a/src/bin/jv.rs
+++ b/src/bin/jv.rs
@@ -1785,18 +1785,14 @@ async fn jv_status(_args: StatusArgs) {
let mut lost_items: Vec<String> = analyzed
.lost
.iter()
- .filter_map(|path| {
- let path_str = path.display().to_string();
- if analyzed.erased.contains(path) {
- return None;
- } else {
- return Some(
- t!("jv.success.status.lost_item", path = path_str)
- .trim()
- .red()
- .to_string(),
- );
- }
+ .map(|path| {
+ t!(
+ "jv.success.status.lost_item",
+ path = path.display().to_string()
+ )
+ .trim()
+ .red()
+ .to_string()
})
.collect();