From 51340754e691cc67e1d39e279cc286bf2eefba62 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 14:13:25 +0000 Subject: [PATCH] Minor optimization: remove unnecessary empty array initialization Co-authored-by: funkemunky <30784509+funkemunky@users.noreply.github.com> --- .../main/java/dev/brighten/antivpn/webhook/WebhookNotifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Source/src/main/java/dev/brighten/antivpn/webhook/WebhookNotifier.java b/Common/Source/src/main/java/dev/brighten/antivpn/webhook/WebhookNotifier.java index aaae25e..9e22503 100644 --- a/Common/Source/src/main/java/dev/brighten/antivpn/webhook/WebhookNotifier.java +++ b/Common/Source/src/main/java/dev/brighten/antivpn/webhook/WebhookNotifier.java @@ -152,7 +152,7 @@ public class WebhookNotifier { embed.put("description", "A player attempted to join using a VPN/proxy or from a blocked country."); // Add fields with player and detection information - JSONObject[] fields = new JSONObject[0]; + JSONObject[] fields; if (result.response() != null) { fields = new JSONObject[] { createDiscordField("Player", player.getName(), true),