Skip to content

Commit

Permalink
Linting style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Apr 22, 2024
1 parent 144f8b7 commit 4a8c172
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cookbooks/fail2ban/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
ruby-webrick
]

if platform?("debian") || (platform?("ubuntu") && node[:lsb][:release].to_f >= 24.04 )
if platform?("debian") || (platform?("ubuntu") && node[:lsb][:release].to_f >= 24.04)
package "python3-inotify"
else
package "gamin"
Expand Down
5 changes: 2 additions & 3 deletions cookbooks/php/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
default[:php][:version] = case
when platform?("debian")
default[:php][:version] = if platform?("debian")
"8.2" # PHP version for Debian
when platform?("ubuntu")
elsif platform?("ubuntu")
case node[:lsb][:release].to_f
when 24.04
"8.3" # PHP version for Ubuntu 24.04
Expand Down
5 changes: 2 additions & 3 deletions cookbooks/ruby/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
default[:ruby][:version] = case
when platform?("debian")
default[:ruby][:version] = if platform?("debian")
"3.1" # ruby version for Debian
when platform?("ubuntu")
elsif platform?("ubuntu")
case node[:lsb][:release].to_f
when 24.04
"3.2" # ruby version for Ubuntu 24.04
Expand Down

0 comments on commit 4a8c172

Please sign in to comment.