jt2594838 commented on a change in pull request #31: Fix sonar
URL: https://github.com/apache/incubator-iotdb/pull/31#discussion_r251022756
##########
File path: iotdb/src/main/java/org/apache/iotdb/db/utils/AuthUtils.java
##########
@@ -185,16 +193,12 @@ public static boolean checkPrivilege(String path, int
privilegeId,
}
for (PathPrivilege pathPrivilege : privilegeList) {
if (path != null) {
- if (pathPrivilege.getPath() != null && AuthUtils.pathBelongsTo(path,
pathPrivilege.getPath())) {
- if (pathPrivilege.getPrivileges().contains(privilegeId)) {
- return true;
- }
+ if (pathPrivilege.getPath() != null && AuthUtils.pathBelongsTo(path,
pathPrivilege.getPath()) &&
pathPrivilege.getPrivileges().contains(privilegeId)) {
Review comment:
This line is too long.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services