Dont add entry if its empty
This commit is contained in:
		
							parent
							
								
									213fbe31e2
								
							
						
					
					
						commit
						c816c1025e
					
				| 
						 | 
				
			
			@ -72,7 +72,11 @@ impl PlugMan {
 | 
			
		|||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
            match plugin.poll(len) {
 | 
			
		||||
                Ok(v) => answers.push((plugin.name().clone(), v)),
 | 
			
		||||
                Ok(v) => {
 | 
			
		||||
                    if !v.is_empty() {
 | 
			
		||||
                        answers.push((plugin.name().clone(), v));
 | 
			
		||||
                    }
 | 
			
		||||
                },
 | 
			
		||||
                Err(e) => eprintln!("Failed to poll plugin: {e}"),
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user