mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Fix nil NoMethodError when converting a duplicated grammar
We were sticking a nil value into the grammars Array when we encountered a duplicate scope. Now we strip out nils before returning the Array.
This commit is contained in:
		| @@ -195,7 +195,7 @@ def load_grammars(tmp_dir, source, all_scopes) | |||||||
|     end |     end | ||||||
|     all_scopes[scope] = p.url |     all_scopes[scope] = p.url | ||||||
|     grammar |     grammar | ||||||
|   end |   end.compact | ||||||
| end | end | ||||||
|  |  | ||||||
| def install_grammars(grammars, path) | def install_grammars(grammars, path) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user