From 7d3bf84d9f38aa1b061405a252c3c09e582eb773 Mon Sep 17 00:00:00 2001 From: Milan Perera Date: Tue, 19 May 2015 17:26:24 +0530 Subject: [PATCH] Update DeviceManagementServiceProviderImpl.java --- .../device/mgt/core/DeviceManagementServiceProviderImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java index 0f8032899dd..7eb690c10e7 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java @@ -136,8 +136,7 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ public boolean disenrollDevice(DeviceIdentifier deviceId) throws DeviceManagementException { DeviceManager dms = this.getPluginRepository().getDeviceManagementProvider(deviceId.getType()); - boolean status = dms.disenrollDevice(deviceId); - return status; + return dms.disenrollDevice(deviceId); } @Override