style clean up

This commit is contained in:
Shiny
2018-01-29 12:56:41 +13:00
committed by GitHub
parent 94db28b3a9
commit 3d4598e4e1

View File

@@ -88,7 +88,7 @@ namespace :growstuff do
# site is small and there aren't many of them, so it shouldn't matter
# for this one-off script.
Garden.all.each do |g|
if g.name.nil? || g.name =~(/^\s*$/)
if g.name.nil? || g.name =~ /^\s*$/
g.name = "Garden"
g.save
end