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)
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