From 6adde25fb53594235ea1cae5216a3dfdd54ffef1 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 27 Jul 2020 11:43:30 -0500 Subject: [Command Tags] Simplify filtering of statement handler names --- app/lib/command_tag/processor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb index 4f11c0c0d..cbe5345c0 100644 --- a/app/lib/command_tag/processor.rb +++ b/app/lib/command_tag/processor.rb @@ -146,8 +146,8 @@ class CommandTag::Processor end def execute_statements(event) - @statements.select { |handler, _| handler.end_with?("_#{event}") }.each do |handler, arguments| - public_send(handler, arguments) + @statements.each do |handler, arguments| + public_send(handler, arguments) if handler.end_with?("_#{event}") end end -- cgit