Skip to content
Snippets Groups Projects
Commit a4f50641 authored by Teal's avatar Teal
Browse files

Clean up Rubocop offense

parent 11432c9f
No related branches found
No related tags found
1 merge request!19Update and cleanup
Pipeline #38216 failed
...@@ -22,7 +22,7 @@ class TelegramBotSubscriber ...@@ -22,7 +22,7 @@ class TelegramBotSubscriber
%w[title language status starts_at ends_at stage_id].include? attr %w[title language status starts_at ends_at stage_id].include? attr
end end
return unless session.conference.relevant_stages.include? session.stage || changes["stage_id"].any? { |stage_id| session.conference.relevant_stages.include? Stage.find(stage_id) } return unless session.conference.relevant_stages.include?(session.stage) || changes["stage_id"].any? { |stage_id| session.conference.relevant_stages.include? Stage.find(stage_id) }
if changes["stage_id"] if changes["stage_id"]
changes["stage"] = [ Stage.find(changes["stage_id"].first).name, Stage.find(changes["stage_id"].last).name ] changes["stage"] = [ Stage.find(changes["stage_id"].first).name, Stage.find(changes["stage_id"].last).name ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment