Fix Lint/DuplicateBranch cop (#24766)
This commit is contained in:
@ -32,9 +32,9 @@ class AccountStatusesFilter
|
||||
private
|
||||
|
||||
def initial_scope
|
||||
if suspended?
|
||||
Status.none
|
||||
elsif anonymous?
|
||||
return Status.none if suspended?
|
||||
|
||||
if anonymous?
|
||||
account.statuses.where(visibility: %i(public unlisted))
|
||||
elsif author?
|
||||
account.statuses.all # NOTE: #merge! does not work without the #all
|
||||
|
Reference in New Issue
Block a user