fixed conditions evaluations, that always resulted in true (#844)
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
This commit is contained in:
committed by
Dominic Schabel
parent
314c74468a
commit
d5c373e420
@@ -66,7 +66,7 @@ public class DistributionSetMetadataDetailsLayout extends AbstractMetadataDetail
|
||||
selectedDistSetId = distributionSet.getId();
|
||||
final List<DistributionSetMetadata> dsMetadataList = distributionSetManagement
|
||||
.findMetaDataByDistributionSetId(PageRequest.of(0, MAX_METADATA_QUERY), selectedDistSetId).getContent();
|
||||
if (null != dsMetadataList && !dsMetadataList.isEmpty()) {
|
||||
if (!dsMetadataList.isEmpty()) {
|
||||
dsMetadataList.forEach(this::setMetadataProperties);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ public class TargetMetadataDetailsLayout extends AbstractMetadataDetailsLayout {
|
||||
final List<TargetMetadata> targetMetadataList = targetManagement
|
||||
.findMetaDataByControllerId(PageRequest.of(0, MAX_METADATA_QUERY), target.getControllerId())
|
||||
.getContent();
|
||||
if (targetMetadataList != null && !targetMetadataList.isEmpty()) {
|
||||
if (!targetMetadataList.isEmpty()) {
|
||||
targetMetadataList.forEach(this::setMetadataProperties);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user