adamsaghy commented on code in PR #4266:
URL: https://github.com/apache/fineract/pull/4266#discussion_r1918187658


##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/interestpauses/service/InterestPauseWritePlatformServiceImpl.java:
##########
@@ -75,10 +75,37 @@ public CommandProcessingResult createInterestPause(Long 
loanId, String startDate
                 locale);
     }
 
+    @Override
+    public CommandProcessingResult deleteInterestPause(ExternalId 
loanExternalId, Long variationId) {
+        return processDeleteInterestPause(() -> 
loanRepositoryWrapper.findOneWithNotFoundDetection(loanExternalId), 
variationId);

Review Comment:
   supplier is not really needed... you may return the Loan entity itself.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to