arturobernalg commented on a change in pull request #222:
URL: https://github.com/apache/commons-text/pull/222#discussion_r615534203



##########
File path: 
src/main/java/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemover.java
##########
@@ -31,12 +31,9 @@
      */
     @Override
     public boolean translate(final int codepoint, final Writer writer) throws 
IOException {
-        if (codepoint >= Character.MIN_SURROGATE && codepoint <= 
Character.MAX_SURROGATE) {
-            // It's a surrogate. Write nothing and say we've translated.
-            return true;
-        }
+        // It's a surrogate. Write nothing and say we've translated.

Review comment:
       Agree. Changed.
   Thank you




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


Reply via email to