]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wordpress/definitions/wordpress_plugin.rb
Rubocop cleanups
[chef.git] / cookbooks / wordpress / definitions / wordpress_plugin.rb
index b165eb2ba294b515f0e202988f81f451ee00f013..7be7a003866c5368ee6007c6a72ffd1db87dcf16 100644 (file)
@@ -36,7 +36,9 @@ define :wordpress_plugin, :action => [:enable] do
       files_mode 0755
     end
   else
-    unless repository = params[:repository]
+    repository = params[:repository]
+
+    unless params
       version = params[:version] || Chef::Wordpress.current_plugin_version(name)
 
       if version =~ /trunk/