mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:

committed by
Loïc Guitaut

parent
3b6d4c830f
commit
2a28cda15c
@ -11,9 +11,7 @@ module DiscourseNarrativeBot
|
||||
immutable_for(24.hours)
|
||||
|
||||
%i[date user_id].each do |key|
|
||||
unless params[key]&.present?
|
||||
raise Discourse::InvalidParameters.new("#{key} must be present")
|
||||
end
|
||||
raise Discourse::InvalidParameters.new("#{key} must be present") if params[key].blank?
|
||||
end
|
||||
|
||||
if params[:user_id].to_i != current_user.id
|
||||
|
@ -63,7 +63,7 @@ module DiscourseNarrativeBot
|
||||
end
|
||||
|
||||
def logo_group(size, width, height)
|
||||
return unless SiteSetting.site_logo_small_url.present?
|
||||
return if SiteSetting.site_logo_small_url.blank?
|
||||
|
||||
uri = URI(SiteSetting.site_logo_small_url)
|
||||
|
||||
|
Reference in New Issue
Block a user