Style arguments forwarding

This commit is contained in:
Maikel Linke
2026-01-19 10:55:24 +11:00
parent 26b39d6626
commit fdc775ae6d
4 changed files with 8 additions and 8 deletions

View File

@@ -93,8 +93,8 @@ module Spree
type.demodulize.downcase
end
def self.find_with_destroyed(*args)
unscoped { find(*args) }
def self.find_with_destroyed(*)
unscoped { find(*) }
end
def payment_profiles_supported?

View File

@@ -392,9 +392,9 @@ module Reporting
end
end
def filter_scope(*args)
def filter_scope(*)
chain_to_scope do
where(*args)
where(*)
end
end
end

View File

@@ -2,12 +2,12 @@
module OpenFoodNetwork
module PerformanceHelper
def multi_benchmark(num_samples, cache_key_patterns: [], &block)
def multi_benchmark(num_samples, cache_key_patterns: [], &)
results = (0..num_samples).map do |_i|
ActiveRecord::Base.connection.query_cache.clear
delete_cache_keys(cache_key_patterns)
result = Benchmark.measure(&block)
result = Benchmark.measure(&)
puts result

View File

@@ -68,9 +68,9 @@ RSpec.describe "DFC Permissions", feature: "cqcm-dev", vcr: true do
end
end
def within_platform_list(variant, &block)
def within_platform_list(variant, &)
retry_expectations(on: Ferrum::JavaScriptError) do
within(platform_list(variant), &block)
within(platform_list(variant), &)
end
end