Skip to content

Commit 7467d26

Browse files
gemini review fix
1 parent a506492 commit 7467d26

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

sdm/src/main/java/com/sap/cds/sdm/service/handler/SDMServiceGenericHandler.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,14 @@ public void handleDraftDiscardForLinks(DraftCancelEventContext context) throws I
118118

119119
for (Map.Entry<String, String> entry : compositionPathMapping.entrySet()) {
120120
String attachmentCompositionDefinition = entry.getKey();
121-
String attachmentCompositionName = entry.getValue();
122-
revertLinksForComposition(
123-
context, parentKeys, attachmentCompositionDefinition, attachmentCompositionName);
121+
revertLinksForComposition(context, parentKeys, attachmentCompositionDefinition);
124122
}
125123
}
126124

127125
private void revertLinksForComposition(
128126
DraftCancelEventContext context,
129127
Map<String, Object> parentKeys,
130-
String attachmentCompositionDefinition,
131-
String attachmentCompositionName)
128+
String attachmentCompositionDefinition)
132129
throws IOException {
133130

134131
CdsModel model = context.getModel();
@@ -216,7 +213,6 @@ private void revertLinkInSDM(
216213
cmisDocToRevert.setUrl(originalUrl);
217214
cmisDocToRevert.setRepositoryId(SDMConstants.REPOSITORY_ID);
218215
sdmService.editLink(cmisDocToRevert, sdmCredentials, isSystemUser);
219-
220216
}
221217

222218
@On(event = "openAttachment")

0 commit comments

Comments
 (0)