Commit d2355e5f authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2124] prefer empty() over size() > 0 (see the previous commit)

parent a09cb3f0
...@@ -128,7 +128,7 @@ string ...@@ -128,7 +128,7 @@ string
SSHFP::toText() const { SSHFP::toText() const {
return (lexical_cast<string>(static_cast<int>(algorithm_)) + return (lexical_cast<string>(static_cast<int>(algorithm_)) +
" " + lexical_cast<string>(static_cast<int>(fingerprint_type_)) + " " + lexical_cast<string>(static_cast<int>(fingerprint_type_)) +
(fingerprint_.size() > 0 ? " " + encodeHex(fingerprint_) : "")); (fingerprint_.empty() ? "" : " " + encodeHex(fingerprint_)));
} }
int int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment