Skip to content

Commit 6e4f150

Browse files
committed
Changes for build workflow test
1 parent e89a2a8 commit 6e4f150

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simple-app/src/main/java/com/simple/app/service/DescriptionServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public void createDescription(DescriptionRequestDto descriptionRequestDto) {
3333

3434
@Override
3535
public void updateDescription(long descriptionId, DescriptionRequestDto descriptionRequestDto) {
36-
Description description = descriptionRepository.findById(descriptionId).orElse(null);
36+
Description existingDescription = descriptionRepository.findById(descriptionId).orElse(null);
3737
if (description != null) {
38-
description.setDetails(descriptionRequestDto.getDetails());
39-
descriptionRepository.save(description);
38+
existingDescription.setDetails(descriptionRequestDto.getDetails());
39+
descriptionRepository.save(existingDescription);
4040
}
4141
}
4242

0 commit comments

Comments
 (0)