Fix sonar finding (#1578)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user