Skip to content

Commit d2143c2

Browse files
committed
Address rubocop issues
1 parent fe5e3e8 commit d2143c2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/hanami/router/formatter/csv.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CSV
3737
# @api private
3838
# @since 2.0.0
3939
def call(routes, **csv_opts)
40-
::CSV.generate(**DEFAULT_OPTIONS.merge(csv_opts)) do |csv|
40+
::CSV.generate(**DEFAULT_OPTIONS, **csv_opts) do |csv|
4141
csv << HEADERS if csv.write_headers?
4242
routes.reduce(csv) do |acc, route|
4343
route.head? ? acc : acc << row(route)

lib/hanami/router/node.rb

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def put(segment, constraints)
3939
def get(segment) # rubocop:disable Metrics/PerceivedComplexity
4040
return unless @variable || @fixed
4141

42-
found = nil
4342
captured = nil
4443

4544
found = @fixed&.fetch(segment, nil)

0 commit comments

Comments
 (0)