mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix Lint/ShadowedArgument (#24733)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user