Avoid shadowing variable name

This commit is contained in:
Brandon Keepers
2014-11-18 14:57:39 -05:00
parent 1abbcb6435
commit 587c764950

View File

@@ -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