mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:
committed by
Loïc Guitaut
parent
3b6d4c830f
commit
2a28cda15c
@@ -315,7 +315,7 @@ class TopicEmbed < ActiveRecord::Base
|
||||
return result if result.size >= 100
|
||||
end
|
||||
end
|
||||
return result unless result.blank?
|
||||
return result if result.present?
|
||||
|
||||
# If there is no first paragraph, return the first div (onebox)
|
||||
doc.css("div").first.to_s
|
||||
|
||||
Reference in New Issue
Block a user