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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy