From 3cea3694db1f896c4ff81bba71ea710f3cf32fdf Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 28 Feb 2024 21:12:38 +0100 Subject: [PATCH] clean up: code style --- events/channels/voiceStateUpdate.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/events/channels/voiceStateUpdate.js b/events/channels/voiceStateUpdate.js index e0ce9a3..5d4b07c 100644 --- a/events/channels/voiceStateUpdate.js +++ b/events/channels/voiceStateUpdate.js @@ -22,9 +22,7 @@ const getChannel = async (member, guildChs, channel) => { owner: member.user.id } }); - if (ownCh !== null) { - return await guildChs.fetch(ownCh.id); - } + if (ownCh !== null) return await guildChs.fetch(ownCh.id); // Create private channel with all permissions const name = member.user.username;