olabusayoT commented on a change in pull request #371:
URL: https://github.com/apache/incubator-daffodil/pull/371#discussion_r415913728



##########
File path: 
daffodil-io/src/main/scala/org/apache/daffodil/processors/charset/CharsetUtils.scala
##########
@@ -271,11 +271,7 @@ trait EncoderDecoderMixin
                 val truncString = cb.toString()
                 truncString
               }
-              case _ if cr.isMalformed() => {
-                cr.throwException()
-                ""
-              }
-              case _ if cr.isUnmappable() => {
+              case _ if cr.isMalformed() || cr.isUnmappable=> {
                 cr.throwException()
                 ""

Review comment:
       That did make the compiler happy!




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