Update authorization_engine.cc

Fix a ClangTidy error during import and update in the github as well.
pull/23743/head
nanahpang 4 years ago committed by GitHub
parent 6c3ec4460f
commit 85817785e2
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