garydgregory commented on a change in pull request #134:
URL: https://github.com/apache/commons-text/pull/134#discussion_r458048321
##########
File path: src/main/java/org/apache/commons/text/CaseUtils.java
##########
@@ -91,10 +91,7 @@ public static String toCamelCase(String str, final boolean
capitalizeFirstLetter
final int codePoint = str.codePointAt(index);
if (delimiterSet.contains(codePoint)) {
- capitalizeNext = true;
- if (outOffset == 0) {
- capitalizeNext = false;
- }
+ capitalizeNext = (outOffset != 0);
Review comment:
No need for parentheses.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]