From 4ce82b0d17387919fedb176f3ee29a9776c9d9ff Mon Sep 17 00:00:00 2001 From: jumagura Date: Mon, 2 Oct 2023 22:46:31 -0400 Subject: [PATCH] fix linting --- plugin.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugin.rb b/plugin.rb index 20822c7f..a312209c 100644 --- a/plugin.rb +++ b/plugin.rb @@ -240,12 +240,10 @@ after_initialize do on(:before_create_topic) do |topic_params, user| category = topic_params.category wizard_submission_id = topic_params.custom_fields['wizard_submission_id'] - if category&.custom_fields&.[]('create_topic_wizard').present? && wizard_submission_id.blank? raise Discourse::InvalidParameters.new( I18n.t('wizard.error_messages.wizard_replacing_composer') ) end end - end