Skip to content

Commit 1ae01bc

Browse files
committed
Suppress new RuboCop offenses
This commit suppresses the following new RuboCop offenses: ```console $ bundle exec rubocop (snip) lib/rubocop/cop/performance/sum.rb:162:41: W: [Correctable] Lint/SafeNavigationConsistency: Use . instead of unnecessary &.. receiver&.literal? && receiver&.array_type? ^^ 118 files inspected, 1 offense detected, 1 offense autocorrectable RuboCop failed! ```
1 parent fb0a21b commit 1ae01bc

File tree

1 file changed

+1
-1
lines changed
  • lib/rubocop/cop/performance

1 file changed

+1
-1
lines changed

lib/rubocop/cop/performance/sum.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def empty_array_literal?(node)
159159

160160
def array_literal?(node)
161161
receiver = node.children.first
162-
receiver&.literal? && receiver&.array_type?
162+
receiver&.literal? && receiver.array_type?
163163
end
164164

165165
def autocorrect(corrector, init, range)

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