rishabhdaim commented on code in PR #1477:
URL: https://github.com/apache/jackrabbit-oak/pull/1477#discussion_r1610077563


##########
oak-run/src/main/js/oak-mongo.js:
##########
@@ -352,12 +352,12 @@ var oak = (function(global){
      * @param {string} pattern the pattern to match the nodes to be removed.
      */
     api.removeDescendantsAndSelfMatching = function(pattern) {
-        var count = 0;
+        let count = 0;

Review Comment:
   > the variables defined with `let` are block scoped and hence cause less 
confusion and are less error-prone. But I agree this can be reverted.
   > 
   > Will remove this.
   
   Removed in 
https://github.com/apache/jackrabbit-oak/pull/1477/commits/30672ee37040d8d280ade40dddc35a7bab5063f5



-- 
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: dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to