diff --git a/src/core/lib/security/authorization/authorization_engine.cc b/src/core/lib/security/authorization/authorization_engine.cc index 61d2e6d4af8..58e23f991cf 100644 --- a/src/core/lib/security/authorization/authorization_engine.cc +++ b/src/core/lib/security/authorization/authorization_engine.cc @@ -23,7 +23,7 @@ namespace grpc_core { std::unique_ptr AuthorizationEngine::CreateAuthorizationEngine( const std::vector& rbac_policies) { - if (rbac_policies.size() < 1 || rbac_policies.size() > 2) { + if (rbac_policies.empty() || rbac_policies.size() > 2) { gpr_log(GPR_ERROR, "Invalid rbac policies vector. Must contain either one or two rbac " "policies.");