Fix issues reported by new rubocop
[chef.git] / cookbooks / nfs / recipes / server.rb
index f75e44e889880f920f4db5986f4fbd332ef4d3fa..33e5a315ea3097699421ed4cdfcf912aaed80087 100644 (file)
@@ -41,11 +41,11 @@ search(:node, "*:*") do |client|
     client.ipaddresses do |address|
       exports[mount[:path]] ||= {}
 
-      if mount[:readonly]
-        exports[mount[:path]][address] = "ro"
-      else
-        exports[mount[:path]][address] = "rw"
-      end
+      exports[mount[:path]][address] = if mount[:readonly]
+                                         "ro"
+                                       else
+                                         "rw"
+                                       end
     end
   end
 end