From f160c3855e55abccd4226cd7cf89232d95ea4660 Mon Sep 17 00:00:00 2001 From: Stein Ivar Berghei Date: Wed, 23 Nov 2022 08:38:55 +0100 Subject: [PATCH] Small optimization --- speaker/discord.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/speaker/discord.go b/speaker/discord.go index f704c6b..6a8613c 100644 --- a/speaker/discord.go +++ b/speaker/discord.go @@ -127,9 +127,8 @@ func update() { return } - if voice.Ready == false || voice.OpusSend == nil { + if !voice.Ready || voice.OpusSend == nil { return } - voice.OpusSend <- opus }