Skip to content

Commit

Permalink
Sidekiq seems to be dropping the default [] (#699)
Browse files Browse the repository at this point in the history
Keep it to ensure consistency with new sidekiq versions
  • Loading branch information
mhenrixon authored Apr 2, 2022
1 parent 0c3ecba commit bb88da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq_unique_jobs/lock_args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def initialize(item)
# The unique arguments to use for creating a lock
# @return [Array] the arguments filters by the {#filtered_args} method if {#lock_args_enabled?}
def lock_args
@lock_args ||= filtered_args
@lock_args ||= filtered_args || []
end

# Checks if the worker class has enabled lock_args
Expand Down

0 comments on commit bb88da9

Please sign in to comment.