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;
|
||||
try {
|
||||
try (ReviewDb db = schema.open()) {
|
||||
conflictingGroup =
|
||||
groups
|
||||
.getAll(schema.open())
|
||||
.getAll(db)
|
||||
.filter(group -> hasConfiguredName(byLowerCaseConfiguredName, group))
|
||||
.findAny();
|
||||
|
||||
|
Reference in New Issue
Block a user