From e5926a3c44a2666bd09bdae21a273e899074d8f1 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 2 Sep 2017 14:49:12 +0900 Subject: [PATCH] Fix outdated comment [ci skip] We do not use double assign since 61f92f8bc5fa0b486fc56f249fa23f1102e79759. --- actionview/lib/action_view/template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb index 1d0797276f..0c4bb73acb 100644 --- a/actionview/lib/action_view/template.rb +++ b/actionview/lib/action_view/template.rb @@ -330,7 +330,7 @@ def locals_code locals = @locals - Module::RUBY_RESERVED_KEYWORDS locals = locals.grep(/\A@?(?![A-Z0-9])(?:[[:alnum:]_]|[^\0-\177])+\z/) - # Double assign to suppress the dreaded 'assigned but unused variable' warning + # Assign for the same variable is to suppress unused variable warning locals.each_with_object("".dup) { |key, code| code << "#{key} = local_assigns[:#{key}]; #{key} = #{key};" } end -- GitLab