mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing issues of previous PRs
This commit is contained in:
parent
3582973f84
commit
a51e7646e3
@ -746,12 +746,9 @@ public class PolicyManagerImpl implements PolicyManager {
|
||||
|
||||
@Override
|
||||
public int getPolicyCount() throws PolicyManagementException {
|
||||
|
||||
int policyCount;
|
||||
try {
|
||||
PolicyManagementDAOFactory.openConnection();
|
||||
policyCount = policyDAO.getPolicyCount();
|
||||
return policyCount;
|
||||
return policyDAO.getPolicyCount();
|
||||
} catch (PolicyManagerDAOException e) {
|
||||
throw new PolicyManagementException("Error occurred while getting policy count", e);
|
||||
} catch (SQLException e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user