Fix sonar finding (#1578)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-02-01 08:54:44 +02:00
committed by GitHub
parent e0bc1f85c1
commit fec4c36847

View File

@@ -359,9 +359,6 @@ public class JpaSystemManagement implements CurrentTenantCacheKeyGenerator, Syst
try {
currentTenantCacheKeyGenerator.setTenantInCreation(tenant);
return createInitialTenantMetaData(tenant);
} catch (final Throwable t) {
LOGGER.error("Failed to create tenant: {}", tenant, t);
return null;
} finally {
currentTenantCacheKeyGenerator.removeTenantInCreation();
}