From 480f2e79efb1b6b0236d73ea8ced7c74133d17e4 Mon Sep 17 00:00:00 2001 From: Davide Polonio Date: Mon, 3 Apr 2023 09:29:14 +0200 Subject: [PATCH] chore: fix typo --- .../polpetta/mezzotre/telegram/callbackquery/Dispatcher.java | 4 ++-- .../com/github/polpetta/mezzotre/telegram/command/Router.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/Dispatcher.java b/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/Dispatcher.java index cf3f67e..3d0c3fc 100644 --- a/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/Dispatcher.java +++ b/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/Dispatcher.java @@ -53,8 +53,8 @@ public class Dispatcher { .flatMap( eventName -> tgEventProcessors.stream() - // FIXME that fucking stupid, why iterate over, just use a map! Make - // mapping at startup then we're gucci for the rest of the run + // FIXME this is fucking stupid, why iterate over, just use a map! + // Make mapping at startup then we're gucci for the rest of the run .filter(processor -> processor.getEventName().equals(eventName)) .findAny()) .map(processor -> processor.process(callbackQueryContext, update)) diff --git a/src/main/java/com/github/polpetta/mezzotre/telegram/command/Router.java b/src/main/java/com/github/polpetta/mezzotre/telegram/command/Router.java index 69ca7b9..5ff9eca 100644 --- a/src/main/java/com/github/polpetta/mezzotre/telegram/command/Router.java +++ b/src/main/java/com/github/polpetta/mezzotre/telegram/command/Router.java @@ -61,8 +61,8 @@ public class Router { .flatMap( command -> tgCommandProcessors.stream() - // FIXME that fucking stupid, why iterate over, just use a map! Make - // mapping at startup then we're gucci for the rest of the run + // FIXME this is fucking stupid, why iterate over, just use a map! + // Make mapping at startup then we're gucci for the rest of the run .filter(ex -> ex.getTriggerKeyword().equals(command)) .findAny()) .map(executor -> executor.process(chat, update))