Skip to content

Commit 5ad0f66

Browse files
authored
Fix variable naming in Rails/ViewRenderLiteral
- Fixes https://github.com/github/rubocop-github/security/code-scanning/4 and https://github.com/github/rubocop-github/security/code-scanning/5 by fixing the typo for singular vs. plural `option_pairs` vs. `options_pairs`.
1 parent 8456f5c commit 5ad0f66

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)