mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Refactored conditional to an || to be more idiomatic.
This commit is contained in:
parent
c793684d4c
commit
d30330441a
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue