mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Removing un-necessary checks when retrieving getAllDeviceInfo
This commit is contained in:
parent
a29736e09e
commit
a7b37a160b
@ -2535,14 +2535,6 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
* of the given device list.
|
* of the given device list.
|
||||||
*/
|
*/
|
||||||
private List<Device> getAllDeviceInfo(List<Device> allDevices) throws DeviceManagementException {
|
private List<Device> getAllDeviceInfo(List<Device> allDevices) throws DeviceManagementException {
|
||||||
if (allDevices.size() == 0) {
|
|
||||||
String msg = "Received empty device list for getAllDeviceInfo";
|
|
||||||
log.error(msg);
|
|
||||||
throw new DeviceManagementException(msg);
|
|
||||||
}
|
|
||||||
if (log.isDebugEnabled()) {
|
|
||||||
log.debug("Get all device info of devices, num of devices: " + allDevices.size());
|
|
||||||
}
|
|
||||||
List<Device> devices = new ArrayList<>();
|
List<Device> devices = new ArrayList<>();
|
||||||
for (Device device : allDevices) {
|
for (Device device : allDevices) {
|
||||||
device.setDeviceInfo(this.getDeviceInfo(device));
|
device.setDeviceInfo(this.getDeviceInfo(device));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user