Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Baker committed Oct 20, 2021
1 parent 82a2d39 commit 0947460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/govuk_app_config/govuk_puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def self.configure(config)

# Specifies the `environment` that Puma will run in.
#
config.environment ENV.fetch("RAILS_ENV") { "development" }
config.environment ENV.fetch("RAILS_ENV", "development")

if ENV["GOVUK_APP_LOGROOT"]
config.stdout_redirect "#{ENV['GOVUK_APP_LOGROOT']}/app.out.log" "#{ENV['GOVUK_APP_LOGROOT']}/app.err.log"
Expand All @@ -25,7 +25,7 @@ def self.configure(config)
# and maximum; this matches the default thread size of Active Record.
#
max_threads_count = ENV.fetch("RAILS_MAX_THREADS", 5)
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
min_threads_count = ENV.fetch("RAILS_MIN_THREADS", max_threads_count)
config.threads min_threads_count, max_threads_count

# Specifies the number of `workers` to boot in clustered mode.
Expand Down

0 comments on commit 0947460

Please sign in to comment.