]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wordpress/definitions/wordpress_theme.rb
Rubocop cleanups
[chef.git] / cookbooks / wordpress / definitions / wordpress_theme.rb
index 91ca9de3d00979ce06c62e49f84b933b25972e6d..0720a8f1f71272494ca389c8adcede7557173cd7 100644 (file)
@@ -36,7 +36,9 @@ define :wordpress_theme, :action => [:enable] do
       files_mode 0644
     end
   else
       files_mode 0644
     end
   else
-    unless repository = params[:repository]
+    repository = params[:repository]
+
+    unless repository
       version = params[:version] || node[:wordpress][:plugins][name][:version]
       repository = "http://themes.svn.wordpress.org/#{name}/#{version}"
     end
       version = params[:version] || node[:wordpress][:plugins][name][:version]
       repository = "http://themes.svn.wordpress.org/#{name}/#{version}"
     end