Skip to content

Commit 55bf7a9

Browse files
authored
Merge pull request #297 from github/fix-variable-naming
Fix variable naming in `Rails/ViewRenderLiteral`
2 parents 8456f5c + 5ad0f66 commit 55bf7a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubocop/cop/github/rails_view_render_literal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def on_send(node)
5454

5555
if render_literal?(node) && node.arguments.count > 1
5656
locals = node.arguments[1]
57-
elsif options_pairs = render_with_options?(node)
57+
elsif option_pairs = render_with_options?(node)
5858
locals = option_pairs.map { |pair| locals_key?(pair) }.compact.first
5959
end
6060

0 commit comments

Comments
 (0)