From 88869cce6af16a1d20c63d4976b6d284a68cf09c Mon Sep 17 00:00:00 2001 From: EmeraldLockdown <86802223+EmeraldLoc@users.noreply.github.com> Date: Wed, 11 Mar 2026 19:03:15 -0500 Subject: [PATCH] Formatting fixes, remove unecessary default's in switches --- src/pc/djui/djui_panel_moderation_confirm_action.c | 4 +--- src/pc/network/packets/packet_moderation.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pc/djui/djui_panel_moderation_confirm_action.c b/src/pc/djui/djui_panel_moderation_confirm_action.c index 630f1957f..2c4725eac 100644 --- a/src/pc/djui/djui_panel_moderation_confirm_action.c +++ b/src/pc/djui/djui_panel_moderation_confirm_action.c @@ -16,7 +16,7 @@ static void djui_panel_moderation_call_action(struct DjuiBase* caller) { u8 action = caller->uTag; char* address = caller->cTag; - switch(action) { + switch (action) { case MODERATION_ACTION_KICK: network_kick_player(player, sReason); break; @@ -32,8 +32,6 @@ static void djui_panel_moderation_call_action(struct DjuiBase* caller) { case MODERATION_ACTION_UNMOD: network_unmod_player(address); break; - default: - break; } free(sReason); diff --git a/src/pc/network/packets/packet_moderation.c b/src/pc/network/packets/packet_moderation.c index d19f521bf..394c1996c 100644 --- a/src/pc/network/packets/packet_moderation.c +++ b/src/pc/network/packets/packet_moderation.c @@ -83,7 +83,5 @@ void network_receive_moderation_action(struct Packet* p) { case MODERATION_ACTION_BAN: network_ban_player(np->localIndex, reason, permanent); break; - default: - break; } } \ No newline at end of file