fix: hide commentless reviews from CLI listings
This commit is contained in:
+5
-1
@@ -167,7 +167,11 @@ pub fn run(request: &Request, config: Option<&Path>) -> Result<(), String> {
|
||||
vec![review]
|
||||
} else {
|
||||
match store {
|
||||
Some(store) => store.list(&root)?,
|
||||
Some(store) => store
|
||||
.list(&root)?
|
||||
.into_iter()
|
||||
.filter(|review| !review.comments.is_empty())
|
||||
.collect(),
|
||||
None => Vec::new(),
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user