aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-05-13 14:47:36 +0100
committerGareth Rees <gareth@mysociety.org>2015-05-29 14:08:22 +0100
commit1184994308f61071262c9f43dbdfc926bbfb1dd0 (patch)
tree781095979c21f8b4f3d783bb89e8e725b0f0bd6e
parentdf17b3ccf92ec4097653bb35b594b8e036e88d93 (diff)
Remove explicit return
-rw-r--r--app/models/public_body.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 4e43c890a..894e52985 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -179,7 +179,7 @@ class PublicBody < ActiveRecord::Base
raise "Two bodies with the same historical URL name: #{name}" if old.size > 1
return unless old.size == 1
# does acts_as_versioned provide a method that returns the current version?
- return PublicBody.find(old.first)
+ PublicBody.find(old.first)
end
# Set the first letter, which is used for faster queries