mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Avoid shadowing variable name
This commit is contained in:
		| @@ -62,8 +62,8 @@ class TestSamples < Test::Unit::TestCase | |||||||
|  |  | ||||||
|         # Check for samples if more than one language matchs the given extension |         # Check for samples if more than one language matchs the given extension | ||||||
|         if language_matches.length > 1 |         if language_matches.length > 1 | ||||||
|           language_matches.each do |language| |           language_matches.each do |match| | ||||||
|             samples = "samples/#{language.name}/*#{extension}" |             samples = "samples/#{match.name}/*#{extension}" | ||||||
|             assert Dir.glob(samples).any?, "Missing samples in #{samples.inspect}. See https://github.com/github/linguist/blob/master/CONTRIBUTING.md" |             assert Dir.glob(samples).any?, "Missing samples in #{samples.inspect}. See https://github.com/github/linguist/blob/master/CONTRIBUTING.md" | ||||||
|           end |           end | ||||||
|         end |         end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user