Skip to content

Commit fa4e268

Browse files
author
lorenzo
committed
code
1 parent 24551c9 commit fa4e268

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/reedelk/file/component/FileDelete.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ public Message apply(FlowContext flowContext, Message message) {
5757
}
5858

5959
Map<String, Serializable> attributesMap = new HashMap<>();
60-
MessageAttributes attributes = new DefaultMessageAttributes(FileDelete.class, attributesMap);
6160
FileDeleteAttribute.FILE_NAME.set(attributesMap, evaluatedFileNameToRemove);
61+
MessageAttributes attributes = new DefaultMessageAttributes(FileDelete.class, attributesMap);
62+
6263
Message outMessage = MessageBuilder.get()
6364
.empty()
6465
.attributes(attributes)
6566
.build();
67+
6668
return Optional.of(outMessage);
6769

6870
}).orElse(MessageBuilder.get().empty().build());

0 commit comments

Comments
 (0)