]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nodejs/providers/package.rb
More rubocop cleanup
[chef.git] / cookbooks / nodejs / providers / package.rb
index ec20d157d023b9aa382aa1dee6aeb065e87b8471..5e3ca068468a9377f44ca1a0d464b8354cb45edd 100644 (file)
@@ -40,7 +40,7 @@ action :install do
     package_name = new_resource.package_name
   end
 
-  unless @packages.include?(new_resource.package_name)
+  if !@packages.include?(new_resource.package_name)
     shell_out!("npm install --global #{package_name}")
     new_resource.updated_by_last_action(true)
   else