mirror of https://github.com/apache/kafka.git
MINOR: Remove duplicate empty string check (#13145)
Reviewers: Chris Egerton <fearthecellos@gmail.com>, Christo Lolov <christololov@gmail.com>
This commit is contained in:
parent
461c5cfe05
commit
8d7d563231
|
@ -58,9 +58,6 @@ public class SimpleHeaderConverter implements HeaderConverter {
|
|||
}
|
||||
try {
|
||||
String str = new String(value, UTF_8);
|
||||
if (str.isEmpty()) {
|
||||
return new SchemaAndValue(Schema.STRING_SCHEMA, str);
|
||||
}
|
||||
return Values.parseString(str);
|
||||
} catch (NoSuchElementException e) {
|
||||
throw new DataException("Failed to deserialize value for header '" + headerKey + "' on topic '" + topic + "'", e);
|
||||
|
|
Loading…
Reference in New Issue