Fix logging of FileEncryptionKey by @chipitsine and cppcheck.

GitOrigin-RevId: 6292860a243435541a6c9632d0c214c495cd9835
This commit is contained in:
levlam 2019-10-24 20:09:09 +03:00
parent ac60ef4c5a
commit 0d375251a4

View File

@ -92,7 +92,7 @@ StringBuilder &operator<<(StringBuilder &string_builder, const FileEncryptionKey
if (key.is_secret()) {
return string_builder << "SecretKey{" << key.size() << "}";
}
if (key.is_secret()) {
if (key.is_secure()) {
return string_builder << "SecureKey{" << key.size() << "}";
}
return string_builder << "NoKey{}";