Skip to content

Commit df27042

Browse files
committed
Fix Style/IfUnlessModifier
1 parent f3d5fb3 commit df27042

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spec/support/acceptance/prepare_host.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# frozen_string_literal: true
22

33
def prepare_host
4-
if fact('os.family') == 'RedHat'
5-
shell('yum clean all --verbose; rm -rf /etc/yum.repos.d/Zabbix*.repo')
6-
end
4+
shell('yum clean all --verbose; rm -rf /etc/yum.repos.d/Zabbix*.repo') if fact('os.family') == 'RedHat'
75

86
apply_manifest <<~PUPPET
97
$services = $facts['os']['family'] ? {

0 commit comments

Comments
 (0)