rubocop-performance 1.13.1 → 1.13.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7df725930fece6ca4b7ffd94e80b36095813fca1b646632d87bf7cc556b2e039
4
- data.tar.gz: 75292501b62f29f90223ce6cc727a90dea11c37e5972c15197ddd81d6a2272ce
3
+ metadata.gz: ee80f72f854adad1ef3a54295f5b732578373d11d19eae5b7ea0386bd2fa0f25
4
+ data.tar.gz: da36ad6040d986c56430965521ee1e597d3bc0919fa9c77ec1e34e5ca2cf43d6
5
5
  SHA512:
6
- metadata.gz: 60cffee092cca563bf9e87e4bfc1aa578a410c1caca1fc13a13b4b26e2002f766ef70afeef6c2011067b6fb7d79559318de320514a75538a89f180d26ceeaa6e
7
- data.tar.gz: af8f26dcb82cc2f77cb6b4f9913117b211f100a48e6539ba108439ce22491664b54f9ad773a427d41f6a6ff5c07a9dee71676bc61f8f1bf90d825ffe5641bf9f
6
+ metadata.gz: 255bba802b4023ec8be39476cc06c7614a4f7cbce11260a608f4c5c479f6e3d9b41ad6a286f8d42cb805ae65995d3bb29f46a746080dde0fa121f3a269cfaeb9
7
+ data.tar.gz: 24bffb35ce7441354bb42920d3ec49a07fa005edd4847bdd81066d22beda71dbb186e5e82205c6ad181372be1963e431751466560345068d995400f237297fb8
@@ -38,8 +38,9 @@ module RuboCop
38
38
 
39
39
  block_arg = def_node.arguments.find(&:blockarg_type?)
40
40
  return unless block_arg
41
+ return unless (block_arg_name = block_arg.loc.name)
41
42
 
42
- block_arg_name = block_arg.loc.name.source.to_sym
43
+ block_arg_name = block_arg_name.source.to_sym
43
44
  return if reassigns_block_arg?(def_node, block_arg_name)
44
45
 
45
46
  add_offense(node) do |corrector|
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Performance
5
5
  # This module holds the RuboCop Performance version information.
6
6
  module Version
7
- STRING = '1.13.1'
7
+ STRING = '1.13.2'
8
8
 
9
9
  def self.document_version
10
10
  STRING.match('\d+\.\d+').to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.1
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-01-01 00:00:00.000000000 Z
13
+ date: 2022-01-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop