From 85c35f25a356c16328e35e849017234a66cf7cb8 Mon Sep 17 00:00:00 2001 From: abhiram Date: Wed, 3 Mar 2021 06:47:22 +0530 Subject: [PATCH] [+] Fix codacy issue --- .gitignore | 1 - .../me/totalfreedom/totalfreedommod/admin/AdminList.java | 9 ++------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 6f537952..c0ab2daf 100644 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,6 @@ manifest.mf /.idea/workspace.xml /.idea/uiDesigner.xml /.idea/libraries -/.idea *.iml # Maven excludes diff --git a/src/main/java/me/totalfreedom/totalfreedommod/admin/AdminList.java b/src/main/java/me/totalfreedom/totalfreedommod/admin/AdminList.java index b7e81c14..c2b1f458 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/admin/AdminList.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/admin/AdminList.java @@ -240,13 +240,8 @@ public class AdminList extends FreedomService public boolean isVerifiedAdmin(Player player) { - // Fix of issue: FS-33 - if(verifiedNoAdmin.contains(player.getName()) || verifiedNoAdminIps.containsKey(player.getName()) && verifiedNoAdminIps.get(player.getName()).contains(FUtil.getIp(player))) - { - return false; - } - - return true; + // Fix of issue FS-33 + return !verifiedNoAdmin.contains(player.getName()) || verifiedNoAdminIps.containsKey(player.getName()) && !verifiedNoAdminIps.get(player.getName()).contains(FUtil.getIp(player)); } public boolean isIdentityMatched(Player player)