Fix shadowed path warning

This commit is contained in:
Joshua Peek
2016-09-23 13:50:01 -07:00
parent c525e3fbef
commit 152b5ade5e

View File

@@ -154,7 +154,7 @@ class TestGrammars < Minitest::Test
# Neither Licensee nor our own regex was able to detect the license, let's check the readme
files = Dir[File.join(ROOT, submodule, "*")]
if readme = files.find { |path| File.basename(path) =~ /\Areadme\b/i }
if readme = files.find { |file| File.basename(file) =~ /\Areadme\b/i }
classify_license(readme)
end
end