dajac commented on a change in pull request #11599: URL: https://github.com/apache/kafka/pull/11599#discussion_r796347687
########## File path: core/src/test/scala/integration/kafka/api/AuthorizerIntegrationTest.scala ########## @@ -223,7 +223,7 @@ class AuthorizerIntegrationTest extends BaseRequestTest { .find(x => x.topicName == tp.topic).get.partitions.asScala .find(p => p.partitionIndex == tp.partition).get.errorCode)), ApiKeys.DESCRIBE_LOG_DIRS -> ((resp: DescribeLogDirsResponse) => - if (resp.data.results.size() > 0) Errors.forCode(resp.data.results.get(0).errorCode) else Errors.CLUSTER_AUTHORIZATION_FAILED), + Errors.forCode(if (resp.data.results.size() > 0) resp.data.results.get(0).errorCode() else resp.data.errorCode())), Review comment: nit: I would remove the parenthesis after `errorCode` to stay consistent with the surrounding code style. -- 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. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org