jaydoane commented on code in PR #5254:
URL: https://github.com/apache/couchdb/pull/5254#discussion_r1767644089


##########
src/couch_quickjs/src/couch_quickjs_scanner_plugin.erl:
##########
@@ -247,10 +247,16 @@ views_validate(DDocId, #{?VIEWS := Views}, {Db, #st{} = 
St0}) when
     try
         lib_load(St, Views),
         ViewList = lists:sort(maps:to_list(valid_views(Views))),
-        Fun = fun({Name, #{?MAP := Src}}) -> add_fun_load(St, Name, Src) end,
-        lists:foreach(Fun, ViewList),
-        {[_ | _], St1 = #st{}} = lists:foldl(fun mapred_fold/2, {ViewList, 
St}, Docs),
-        {Db, St1}
+        case ViewList of
+            [_ | _] ->

Review Comment:
   Always a good day when you can use the 🤖 butt!



-- 
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