Skip to content

Commit 0efb164

Browse files
Copilotdamacus
andcommitted
Fix cookstyle warnings
Co-authored-by: damacus <40786+damacus@users.noreply.github.com>
1 parent 56dd9ba commit 0efb164

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

libraries/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def ruby_installed?
108108
end
109109

110110
def verbose
111-
return '-v' if new_resource.verbose
111+
'-v' if new_resource.verbose
112112
end
113113
end
114114
end

libraries/package_deps.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ def ensure_java_environment
2727
def enable_crb_repository_if_needed
2828
return unless node['platform_family'] == 'rhel' && node['platform_version'].to_i >= 9
2929

30-
case node['platform']
31-
when 'centos'
32-
repository_name = 'crb'
33-
when 'almalinux', 'rocky'
34-
repository_name = 'crb'
35-
when 'redhat'
36-
repository_name = 'codeready-builder-for-rhel-9-x86_64-rpms'
37-
else
38-
repository_name = 'crb' # Default for other RHEL 9+ derivatives
39-
end
30+
repository_name = case node['platform']
31+
when 'centos'
32+
'crb'
33+
when 'almalinux', 'rocky'
34+
'crb'
35+
when 'redhat'
36+
'codeready-builder-for-rhel-9-x86_64-rpms'
37+
else
38+
'crb' # Default for other RHEL 9+ derivatives
39+
end
4040

4141
# Install dnf-plugins-core if not already present
4242
package 'dnf-plugins-core'

resources/script.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
property :returns,
5656
Array, default: [0],
57-
description: 'The return value for a command. This may be an array of accepted values.'
57+
description: 'The return value for a command. This may be an array of accepted values.'
5858

5959
property :timeout,
6060
Integer,

resources/user_install.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646

4747
property :update_rbenv,
4848
[true,
49-
false], default: true,
50-
description: 'Update rbenv definitions.'
49+
false], default: true,
50+
description: 'Update rbenv definitions.'
5151

5252
action :install do
5353
package package_prerequisites

0 commit comments

Comments
 (0)