Skip to content

Commit 8925432

Browse files
committed
Fix Foodcritic warning sunggun-yu#39
1 parent 654fe66 commit 8925432

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

recipes/default.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@
126126

127127
# Create the mongod.service file
128128
case node['platform']
129-
when 'ubuntu'
130-
if node['platform_version'].to_f >= 15.04
129+
when 'ubuntu'
131130
template '/lib/systemd/system/mongod.service' do
132131
source 'mongod.service.erb'
133132
mode 0644
133+
only_if { node['platform_version'].to_f >= 15.04 }
134134
end
135-
end
136135
end
137136

138137
# Start the mongod service

0 commit comments

Comments
 (0)