SYNERGY-1057 Fix code smell
This commit is contained in:
parent
9340f1ffaf
commit
e52d7cc26a
1 changed files with 3 additions and 5 deletions
|
|
@ -712,11 +712,9 @@ SecureSocket::verifyCertFingerprint()
|
||||||
if (file.is_open()) {
|
if (file.is_open()) {
|
||||||
while (!file.eof()) {
|
while (!file.eof()) {
|
||||||
getline(file,fileLine);
|
getline(file,fileLine);
|
||||||
if (!fileLine.empty()) {
|
if (!fileLine.empty() && !fileLine.compare(fingerprint)) {
|
||||||
if (fileLine.compare(fingerprint) == 0) {
|
isValid = true;
|
||||||
isValid = true;
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue