The overall objective was merely to reduce the duplication in code, as the two blocks seemed the same to me less the condition triggering the exception. But you have a point so maybe leave as is.
[ Full content available at: https://github.com/apache/kafka/pull/5567 ] This message was relayed via gitbox.apache.org for [email protected]
