Merge "SystemGroupBackend: Open ReviewDb in try-with-resource"
This commit is contained in:
@@ -213,10 +213,10 @@ public class SystemGroupBackend extends AbstractGroupBackend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Optional<AccountGroup> conflictingGroup;
|
Optional<AccountGroup> conflictingGroup;
|
||||||
try {
|
try (ReviewDb db = schema.open()) {
|
||||||
conflictingGroup =
|
conflictingGroup =
|
||||||
groups
|
groups
|
||||||
.getAll(schema.open())
|
.getAll(db)
|
||||||
.filter(group -> hasConfiguredName(byLowerCaseConfiguredName, group))
|
.filter(group -> hasConfiguredName(byLowerCaseConfiguredName, group))
|
||||||
.findAny();
|
.findAny();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user