From 4794ca67bef30bd8247e18a9d12e7ece170c8c21 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 17 May 2020 19:35:23 +0100 Subject: [PATCH] Fix cookstyle warnings --- cookbooks/passenger/attributes/default.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cookbooks/passenger/attributes/default.rb b/cookbooks/passenger/attributes/default.rb index 1c1b0c6fb..03c6b5a8d 100644 --- a/cookbooks/passenger/attributes/default.rb +++ b/cookbooks/passenger/attributes/default.rb @@ -1,8 +1,8 @@ -if node[:lsb][:release].to_f < 20.04 - default[:passenger][:ruby_version] = "2.5" -else - default[:passenger][:ruby_version] = "2.7" -end +default[:passenger][:ruby_version] = if node[:lsb][:release].to_f < 20.04 + "2.5" + else + "2.7" + end default[:passenger][:max_pool_size] = 6 default[:passenger][:pool_idle_time] = 300 -- 2.39.5