mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix Style/GuardClause in User#regenerate_feed! (#35523)
This commit is contained in:
parent
916cc1365e
commit
eb73ae2f86
1 changed files with 4 additions and 4 deletions
|
|
@ -540,10 +540,10 @@ class User < ApplicationRecord
|
|||
|
||||
def regenerate_feed!
|
||||
home_feed = HomeFeed.new(account)
|
||||
unless home_feed.regenerating?
|
||||
home_feed.regeneration_in_progress!
|
||||
RegenerationWorker.perform_async(account_id)
|
||||
end
|
||||
return if home_feed.regenerating?
|
||||
|
||||
home_feed.regeneration_in_progress!
|
||||
RegenerationWorker.perform_async(account_id)
|
||||
end
|
||||
|
||||
def needs_feed_update?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue