#40 Make boolean condition better readable

This commit is contained in:
Andreas Schuh 2015-03-25 00:30:58 +00:00
parent 48e1a44dae
commit cd1f401d45

View file

@ -1523,7 +1523,7 @@ const char* ProgramUsage() {
static string version_string;
void SetVersionString(const string& version) {
if (version_string.empty() == false)
if (version_string.length() > 0)
ReportError(DIE, "ERROR: SetVersionString() called twice\n");
version_string = version;
}