From b3e2c18092447ab88499f93a6f99904cbefcaca0 Mon Sep 17 00:00:00 2001 From: Louis Antonopoulos Date: Tue, 8 Oct 2024 17:32:52 +0100 Subject: [PATCH] Condense suspenders_main block --- lib/install/web.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/install/web.rb b/lib/install/web.rb index 6fe16524..67832131 100644 --- a/lib/install/web.rb +++ b/lib/install/web.rb @@ -24,12 +24,10 @@ def apply_template! end if options[:database] == "postgresql" && options[:skip_test] && options[:skip_rubocop] after_bundle do - if ARGV.include?("--suspenders_main") - gem_group :development, :test do + gem_group :development, :test do + if ARGV.include?("--suspenders_main") gem "suspenders", github: "thoughtbot/suspenders", branch: "main" - end - else - gem_group :development, :test do + else gem "suspenders" end end