Merge pull request #23743 from grpc/nanahpang-patch-3

Update authorization_engine.cc
pull/23759/head
nanahpang 5 years ago committed by GitHub
commit f280254c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/security/authorization/authorization_engine.cc

@ -23,7 +23,7 @@ namespace grpc_core {
std::unique_ptr<AuthorizationEngine>
AuthorizationEngine::CreateAuthorizationEngine(
const std::vector<envoy_config_rbac_v3_RBAC*>& 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.");

Loading…
Cancel
Save