mirror of
https://github.com/deskflow/deskflow.git
synced 2026-06-25 21:12:01 +08:00
SYNERGY-1057 Fix code smell
This commit is contained in:
parent
9340f1ffaf
commit
e52d7cc26a
@ -712,11 +712,9 @@ SecureSocket::verifyCertFingerprint()
|
||||
if (file.is_open()) {
|
||||
while (!file.eof()) {
|
||||
getline(file,fileLine);
|
||||
if (!fileLine.empty()) {
|
||||
if (fileLine.compare(fingerprint) == 0) {
|
||||
isValid = true;
|
||||
break;
|
||||
}
|
||||
if (!fileLine.empty() && !fileLine.compare(fingerprint)) {
|
||||
isValid = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user