From bde57a0bdf0f2d61e010bd0d6f62fad5a0b07ebc Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Mon, 22 Mar 2021 07:18:09 +0200 Subject: [PATCH] Removed unnecessary parenthesis --- .../delivery/webserver/resolver/json/PlayerJSONResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/PlayerJSONResolver.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/PlayerJSONResolver.java index 131fdc229..43040a452 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/PlayerJSONResolver.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/PlayerJSONResolver.java @@ -46,7 +46,7 @@ public class PlayerJSONResolver implements Resolver { public boolean canAccess(Request request) { WebUser user = request.getUser().orElse(new WebUser("")); if (user.hasPermission("page.player.other")) return true; - if ((user.hasPermission("page.player.self"))) { + if (user.hasPermission("page.player.self")) { try { UUID webUserUUID = identifiers.getPlayerUUID(user.getName()); UUID playerUUID = identifiers.getPlayerUUID(request);