From 9755541f68152c02b54f4cfed49507f830ab4116 Mon Sep 17 00:00:00 2001 From: Fury_Phoenix <64714532+Phoenix-Starlight@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:51:54 -0700 Subject: [PATCH] refactor(rest): Remove unneeded null guard --- .../java/com/seailz/discordjar/utils/rest/DiscordRequest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java b/src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java index c7aadb17..3c40b38d 100644 --- a/src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java +++ b/src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java @@ -240,9 +240,6 @@ private DiscordResponse invoke(String contentType, boolean auth) throws Unhandle if (auth) { requestBuilder.addHeader("Authorization", "Bot " + djv.getToken()); } - if (contentType == null) { - requestBuilder.addHeader("Content-Type", "application/json"); - } if (contentType != null) { requestBuilder.addHeader("Content-Type", contentType); }