Skip to content

Commit

Permalink
Remove unused arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Oct 5, 2023
1 parent 70318fd commit 4e89ba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shakapacker/digest_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def compilation_digest_path
config.cache_path.join(path)
end

def generate_host_hash(*keys)
def generate_host_hash
@generated_host_hashes ||= {}

keys = [Rails.application.config.asset_host, ENV["SHAKAPACKER_ASSET_HOST"]] if keys.empty?
keys = [Rails.application.config.asset_host, ENV["SHAKAPACKER_ASSET_HOST"]]

@generated_host_hashes[keys] ||= Digest::SHA1.hexdigest(keys.join("-"))
end
Expand Down

0 comments on commit 4e89ba0

Please sign in to comment.