From bcf6eafb0d6f42dbbf3f9f97a79f5eacb0c960a7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 24 Jun 2020 18:49:12 +0100 Subject: [PATCH] Fix new rubocopy warnings --- .rubocop_todo.yml | 2 +- config/puma.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 6a1338851..366058e7d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -69,7 +69,7 @@ Metrics/ClassLength: # Offense count: 74 Metrics/CyclomaticComplexity: - Max: 22 + Max: 28 # Offense count: 722 # Configuration parameters: CountComments, ExcludedMethods. diff --git a/config/puma.rb b/config/puma.rb index 5ed443774..283e163b1 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -4,13 +4,13 @@ # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches the default thread size of Active Record. # -max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +max_threads_count = ENV.fetch("RAILS_MAX_THREADS", 5) min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count } threads min_threads_count, max_threads_count # Specifies the `port` that Puma will listen on to receive requests; default is 3000. # -port ENV.fetch("PORT") { 3000 } +port ENV.fetch("PORT", 3000) # Specifies the `environment` that Puma will run in. # -- 2.45.2