From 1ed51c8e02d202ad183ebfeb4e13b86e0690d658 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 21 Jan 2023 10:54:51 -0500 Subject: [PATCH] Lambda syntax sugar --- src/discord/MagicBot.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/discord/MagicBot.java b/src/discord/MagicBot.java index 431424c2..93eb189f 100644 --- a/src/discord/MagicBot.java +++ b/src/discord/MagicBot.java @@ -124,11 +124,7 @@ public class MagicBot extends ListenerAdapter { ChatChannel.Init(); // Background thread to send Admin Events - Runnable adminLogRunnable = new Runnable() { - public void run() { - SendAdminLogUpdates(); - } - }; + Runnable adminLogRunnable = () -> SendAdminLogUpdates(); ScheduledExecutorService exec = Executors.newScheduledThreadPool(1); exec.scheduleAtFixedRate(adminLogRunnable , 0, 1, TimeUnit.MINUTES);