Skip to content

Commit

Permalink
refactor: remove Lint/UnusedBlockArgument rubocop todos
Browse files Browse the repository at this point in the history
  • Loading branch information
thestelz committed Oct 17, 2022
1 parent 0acfd61 commit a4e43ae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Expand Up @@ -31,14 +31,6 @@ Lint/NonLocalExitFromIterator:
Exclude:
- 'lib/rgeo/geos/ffi_factory.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'lib/rgeo/feature/factory_generator.rb'
- 'lib/rgeo/geos/utils.rb'

# Offense count: 53
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Expand Down
2 changes: 1 addition & 1 deletion lib/rgeo/feature/factory_generator.rb
Expand Up @@ -75,7 +75,7 @@ def call(config = {})
# factory.

def self.single(factory)
proc { |c| factory }
proc { |_c| factory }
end

# Return a new FactoryGenerator that calls the given delegate, but
Expand Down
2 changes: 1 addition & 1 deletion lib/rgeo/geos/utils.rb
Expand Up @@ -50,7 +50,7 @@ def ffi_compute_dimension(geom)
end

def ffi_coord_seq_hash(cs, hash = 0)
(0...cs.length).inject(hash) do |h, i|
(0...cs.length).inject(hash) do |_h, i|
[hash, cs.get_x(i), cs.get_y(i), cs.get_z(i)].hash
end
end
Expand Down

0 comments on commit a4e43ae

Please sign in to comment.