DEV: Fix Lint/ShadowedArgument (#24733)

This commit is contained in:
Jarek Radosz
2023-12-06 13:16:10 +01:00
committed by GitHub
parent 1e471f7ec2
commit 4280c01153
6 changed files with 6 additions and 7 deletions

View File

@ -12,10 +12,9 @@ module Compression
def compress(path, target_name)
current_target = target_name
@strategies.reduce("") do |compressed_path, strategy|
@strategies.reduce(nil) do |_, strategy|
compressed_path = strategy.compress(path, current_target)
current_target = compressed_path.split("/").last
compressed_path
end
end