mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix Style/GuardClause in PreviewCard (#35525)
This commit is contained in:
parent
e183d7dd9a
commit
63daf6b317
1 changed files with 3 additions and 4 deletions
|
|
@ -170,10 +170,9 @@ class PreviewCard < ApplicationRecord
|
|||
private
|
||||
|
||||
def serialized_authors
|
||||
if author_name? || author_url? || author_account_id?
|
||||
PreviewCard::Author
|
||||
.new(self)
|
||||
end
|
||||
return unless author_name? || author_url? || author_account_id?
|
||||
|
||||
PreviewCard::Author.new(self)
|
||||
end
|
||||
|
||||
def extract_dimensions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue