From 3433bd4141574458e058a89c5774b0788d1b1cb3 Mon Sep 17 00:00:00 2001 From: jumagura Date: Mon, 2 Oct 2023 18:29:12 -0400 Subject: [PATCH] fix linting --- plugin.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugin.rb b/plugin.rb index e930dfa6..4e674b1d 100644 --- a/plugin.rb +++ b/plugin.rb @@ -239,12 +239,10 @@ after_initialize do on(:before_create_topic) do |topic_params, user| next if topic_params[:archetype] == 'message' - if topic_params[:category]&.custom_fields&.[]('create_topic_wizard').present? && !topic_params[:from_wizard] raise Discourse::InvalidParameters.new( I18n.t('wizard.error_messages.wizard_replacing_composer') ) end end - end