diff --git a/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemover.java b/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemover.java index 2462909d9..ce86d5e85 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemover.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnpairedSurrogateRemover.java @@ -34,10 +34,9 @@ public class UnicodeUnpairedSurrogateRemover extends CodePointTranslator { if (codepoint >= Character.MIN_SURROGATE && codepoint <= Character.MAX_SURROGATE) { // It's a surrogate. Write nothing and say we've translated. return true; - } else { - // It's not a surrogate. Don't translate it. - return false; } + // It's not a surrogate. Don't translate it. + return false; } }