Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jul 13, 2020
1 parent 24a81c4 commit 39064fb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/sidekiq/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,6 @@ def initialize_logger
Sidekiq.logger.level = ::Logger::DEBUG if options[:verbose]
end

INTERNAL_OPTIONS = [
# These are options that are set internally and cannot be
# set via the config file or command line arguments.
:strict
]

def parse_config(path)
opts = YAML.load(ERB.new(File.read(path)).result) || {}

Expand All @@ -373,7 +367,7 @@ def parse_config(path)
end

opts = opts.merge(opts.delete(environment.to_sym) || {})
opts.delete(*INTERNAL_OPTIONS)
opts.delete(:strict)

parse_queues(opts, opts.delete(:queues) || [])

Expand Down

0 comments on commit 39064fb

Please sign in to comment.