From ba4ba2022eba18f87e6a9da46cada147c6725bd6 Mon Sep 17 00:00:00 2001 From: lexikiq Date: Fri, 11 Jun 2021 19:53:30 -0400 Subject: [PATCH] Obey Checkstyle rules --- .../java/com/velocitypowered/api/command/CommandSource.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/command/CommandSource.java b/api/src/main/java/com/velocitypowered/api/command/CommandSource.java index 75ad2ddd2..2f465fda7 100644 --- a/api/src/main/java/com/velocitypowered/api/command/CommandSource.java +++ b/api/src/main/java/com/velocitypowered/api/command/CommandSource.java @@ -50,10 +50,12 @@ public interface CommandSource extends Audience, PermissionSubject, PermissionCh @Override default @NotNull TriState value(String permission) { Tristate state = getPermissionValue(permission); - if (state == Tristate.TRUE) + if (state == Tristate.TRUE) { return TriState.TRUE; - if (state == Tristate.UNDEFINED) + } + if (state == Tristate.UNDEFINED) { return TriState.NOT_SET; + } return TriState.FALSE; } }