Skip to content

Commit eee5ebe

Browse files
committed
refactor
1 parent 179e68c commit eee5ebe

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

iotdb-core/confignode/src/test/java/org/apache/iotdb/confignode/manager/pipe/source/PipeConfigTreePrivilegeParseVisitorTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ public void testCanReadSysSchema() {
8181
Assert.assertTrue(skipVisitor.canReadSysSchema("root.db", null, true));
8282
Assert.assertFalse(skipVisitor.canReadSysSchema("root.db", null, false));
8383
Assert.assertFalse(
84-
throwVisitor
85-
.visitCreateDatabase(
86-
new DatabaseSchemaPlan(
87-
ConfigPhysicalPlanType.CreateDatabase, new TDatabaseSchema("root.db1")),
88-
null)
89-
.isPresent());
84+
throwVisitor
85+
.visitCreateDatabase(
86+
new DatabaseSchemaPlan(
87+
ConfigPhysicalPlanType.CreateDatabase, new TDatabaseSchema("root.db1")),
88+
null)
89+
.isPresent());
9090

9191
permissionManager.setUserPrivilege(
92-
(userName, privilegeUnion) ->
93-
privilegeUnion.getPrivilegeType() == PrivilegeType.READ_SCHEMA
94-
&& privilegeUnion.getPaths().stream().allMatch(path -> path.equals("root.db.**")));
92+
(userName, privilegeUnion) ->
93+
privilegeUnion.getPrivilegeType() == PrivilegeType.READ_SCHEMA
94+
&& privilegeUnion.getPaths().stream().allMatch(path -> path.equals("root.db.**")));
9595
Assert.assertTrue(skipVisitor.canReadSysSchema("root.db", null, true));
9696
Assert.assertTrue(skipVisitor.canReadSysSchema("root.db", null, false));
9797
}

0 commit comments

Comments
 (0)