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 {
|
try {
|
||||||
currentTenantCacheKeyGenerator.setTenantInCreation(tenant);
|
currentTenantCacheKeyGenerator.setTenantInCreation(tenant);
|
||||||
return createInitialTenantMetaData(tenant);
|
return createInitialTenantMetaData(tenant);
|
||||||
} catch (final Throwable t) {
|
|
||||||
LOGGER.error("Failed to create tenant: {}", tenant, t);
|
|
||||||
return null;
|
|
||||||
} finally {
|
} finally {
|
||||||
currentTenantCacheKeyGenerator.removeTenantInCreation();
|
currentTenantCacheKeyGenerator.removeTenantInCreation();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user