kinow commented on code in PR #147:
URL: https://github.com/apache/jena-site/pull/147#discussion_r1111203378


##########
source/documentation/query/javascript-functions.md:
##########
@@ -97,9 +106,7 @@ For example, "some words to process " becomes 
"someWordsToProcess".
     // Words to be combined are separated by a space in the string.
     
     function toCamelCase(str) {
-        return str.split(' ')
-       .map(cc)
-       .join('');
+        return str.split(' ').map(cc).join('');

Review Comment:
   I'm fine either way. But if that's JS, the previous way is now more common, 
I think (although for shorter chained calls like this one I think it's almost 
50% 50%) - https://eslint.org/docs/latest/rules/newline-per-chained-call



-- 
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...@jena.apache.org

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

Reply via email to