mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Refactor: use unless instead of if not
This commit is contained in:
		
							parent
							
								
									eb60b25c4e
								
							
						
					
					
						commit
						1b85ba6f22
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -238,7 +238,7 @@ class Ameba::Config | |||
| 
 | ||||
|   private def default_globs | ||||
|     [SOURCES_GLOB].tap do |globs| | ||||
|       globs.push("!lib") if !Dir["lib/**/*.cr"].empty? | ||||
|       globs.push("!lib") unless Dir["lib/**/*.cr"].empty? | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue