aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-11-26 06:11:30 -0500
committerGravatar ncteisen <ncteisen@gmail.com>2018-11-26 06:11:30 -0500
commitd3631f9c799b1b5f50e1581d67e956db8a8816a3 (patch)
treea0ad8ec35975da7a948aed43fc1f416527da29f4
parent346d745c6e4c4edd2652abd848dc54d83989a193 (diff)
fix clang tidy
-rw-r--r--test/cpp/qps/qps_json_driver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc
index 2b81cca2d6..1d67e79b86 100644
--- a/test/cpp/qps/qps_json_driver.cc
+++ b/test/cpp/qps/qps_json_driver.cc
@@ -91,7 +91,7 @@ ConstructPerWorkerCredentialTypesMap() {
// a map.
std::string remaining = FLAGS_per_worker_credential_types;
std::map<std::string, std::string> out;
- while (remaining.size() > 0) {
+ while (!remaining.empty()) {
size_t next_semicolon = remaining.find(';');
std::string next_entry = remaining.substr(0, next_semicolon);
if (next_semicolon == std::string::npos) {