reschke commented on code in PR #2224:
URL: https://github.com/apache/jackrabbit-oak/pull/2224#discussion_r2039154485
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStore.java:
##########
@@ -3803,11 +3801,11 @@ protected void execute(@NotNull DocumentNodeStore
nodeStore) {
}
private static Supplier<Integer> getDelay(DocumentNodeStore ns) {
- int delay = 0;
if (ns.getAsyncDelay() != 0) {
- delay = (int) SECONDS.toMillis(MODIFIED_IN_SECS_RESOLUTION);
+ return () -> (int)
SECONDS.toMillis(MODIFIED_IN_SECS_RESOLUTION);
+ } {
Review Comment:
I prefer return statements at the same identation level.
--
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]