diff --git a/app/models/group.rb b/app/models/group.rb index c96248ebd29..e16af207bf0 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -77,10 +77,7 @@ class Group < ActiveRecord::Base end def self.[](name) - unless g = lookup_group(name) - g = refresh_automatic_group!(name) - end - g + lookup_group(name) || refresh_automatic_group!(name) end def self.lookup_group(name)