Replace "size()" with "empty()".

This commit is contained in:
Haojian Wu 2017-03-30 21:59:18 +02:00
parent 6ef3be23fd
commit 00693ba075
7 changed files with 8 additions and 8 deletions

View file

@ -427,7 +427,7 @@ void OnClientCertificateSelected(
auto certs = net::X509Certificate::CreateCertificateListFromBytes(
data.c_str(), data.length(), net::X509Certificate::FORMAT_AUTO);
if (certs.size() > 0)
if (!certs.empty())
delegate->ContinueWithCertificate(certs[0].get());
}