[Minor] code cleanup in RemoveStrolchRootElementsService

This commit is contained in:
Robert von Burg 2023-04-06 14:40:59 +02:00
parent f22ec993ee
commit 7a4a434dd8
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ public class RemoveStrolchRootElementService extends AbstractService<LocatorArgu
case Tags.RESOURCE -> tx.remove((Resource) rootElement);
case Tags.ORDER -> tx.remove((Order) rootElement);
case Tags.ACTIVITY -> tx.remove((Activity) rootElement);
default -> throw new IllegalStateException("Unexpected value: " + rootElement.getObjectType());
}
tx.commitOnClose();