未验证 提交 e58a6b2a 编写于 作者: 张旭 提交者: GitHub

[ISSUE #2196] code style(acl): correct spell mistake, remove redundant code (#2197)

* code style(acl): correct spell mistake, remove redundant code
* refine
Co-authored-by: Nzhangxu16 <zhangxu16@xiaomi.com>
上级 ea7acf4a
......@@ -65,7 +65,6 @@ public class Permission {
case "SUB":
return Permission.SUB;
case "PUB|SUB":
return Permission.PUB | Permission.SUB;
case "SUB|PUB":
return Permission.PUB | Permission.SUB;
case "DENY":
......
......@@ -164,14 +164,13 @@ public class PlainPermissionManager {
return false;
}
private Map<String, Object> createAclAccessConfigMap(Map<String, Object> existedAccoutMap, PlainAccessConfig plainAccessConfig) {
private Map<String, Object> createAclAccessConfigMap(Map<String, Object> existedAccountMap, PlainAccessConfig plainAccessConfig) {
Map<String, Object> newAccountsMap = null;
if (existedAccoutMap == null) {
if (existedAccountMap == null) {
newAccountsMap = new LinkedHashMap<String, Object>();
} else {
newAccountsMap = existedAccoutMap;
newAccountsMap = existedAccountMap;
}
if (StringUtils.isEmpty(plainAccessConfig.getAccessKey()) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册