Skip to content

Commit

Permalink
refactor(rest): Remove unneeded null guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix-Starlight committed Mar 26, 2024
1 parent d6d0923 commit 9755541
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9755541

Please sign in to comment.