Fix Style/GuardClause in PreviewCard (#35525)
This commit is contained in:
@@ -170,10 +170,9 @@ class PreviewCard < ApplicationRecord
|
|||||||
private
|
private
|
||||||
|
|
||||||
def serialized_authors
|
def serialized_authors
|
||||||
if author_name? || author_url? || author_account_id?
|
return unless author_name? || author_url? || author_account_id?
|
||||||
PreviewCard::Author
|
|
||||||
.new(self)
|
PreviewCard::Author.new(self)
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def extract_dimensions
|
def extract_dimensions
|
||||||
|
|||||||
Reference in New Issue
Block a user