We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09aeed2 commit 19e82b9Copy full SHA for 19e82b9
src/db/models.rs
@@ -103,7 +103,11 @@ pub struct ScanEvent {
103
104
impl ScanEvent {
105
pub fn get_targets_hit(&self) -> Vec<String> {
106
- self.targets_hit.split(',').map(|s| s.to_string()).collect()
+ self.targets_hit
107
+ .split(',')
108
+ .map(|s| s.to_string())
109
+ .filter(|s| !s.is_empty())
110
+ .collect()
111
}
112
113
pub fn add_target_hit(&mut self, target: &str) {
0 commit comments