X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-ncmp-service%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fcps%2Fncmp%2Fapi%2Fimpl%2Finventory%2Fsync%2FModuleSyncService.java;h=333a6f28b23a5155ef58af71bb46bd3227295d1b;hb=60baf82e54d286426ce4f99f24658c11304b8a05;hp=8b70798eb1a0ca926327926af1a2e41c7882ee71;hpb=97c659a5a1bb08bb57b74e98bd43b76a02706554;p=cps.git diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java index 8b70798eb..333a6f28b 100644 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java @@ -157,14 +157,7 @@ public class ModuleSyncService { final Collection moduleReferences) { final Collection identifiedNewModuleReferences = cpsModuleService .identifyNewModuleReferences(moduleReferences); - final Map newModuleNameToContentMap; - if (identifiedNewModuleReferences.isEmpty()) { - newModuleNameToContentMap = NO_NEW_MODULES; - } else { - newModuleNameToContentMap = dmiModelOperations.getNewYangResourcesFromDmi(yangModelCmHandle, - identifiedNewModuleReferences); - } - return newModuleNameToContentMap; + return dmiModelOperations.getNewYangResourcesFromDmi(yangModelCmHandle, identifiedNewModuleReferences); } private String getModuleSetTag(final YangModelCmHandle yangModelCmHandle, final boolean inUpgrade) {