chia7712 commented on code in PR #17934:
URL: https://github.com/apache/kafka/pull/17934#discussion_r1858862670
##########
core/src/test/scala/unit/kafka/server/ControllerMutationQuotaTest.scala:
##########
@@ -387,9 +387,7 @@ class ControllerMutationQuotaTest extends BaseRequestTest {
private def waitUserQuota(user: String, expectedQuota: Double): Unit = {
val quotaManager = brokers.head.quotaManagers.controllerMutation
- val controllerQuotaManager =
- if (isKRaftTest())
Option(controllerServers.head.quotaManagers.controllerMutation)
- else Option.empty
+ val controllerQuotaManager =
Option(controllerServers.head.quotaManagers.controllerMutation)
Review Comment:
we don't need `Option`, right?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]