提交 68aadbc2 编写于 作者: A Arun Agrawal

Shadowing variable warning removed

上级 363a06f3
......@@ -1306,14 +1306,14 @@ def shallow?
end
def draw(name)
path = @draw_paths.find do |path|
path.join("#{name}.rb").file?
path = @draw_paths.find do |_path|
_path.join("#{name}.rb").file?
end
unless path
msg = "Your router tried to #draw the external file #{name}.rb,\n" \
"but the file was not found in:\n\n"
msg += @draw_paths.map { |path| " * #{path}" }.join("\n")
msg += @draw_paths.map { |_path| " * #{_path}" }.join("\n")
raise msg
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册