2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-07 01:55:12 +00:00

Decrease some indentation in linux platform code

This commit is contained in:
Ilya Fedin
2021-01-15 11:10:10 +04:00
committed by John Preston
parent 4348ddf938
commit bad888496c
2 changed files with 18 additions and 12 deletions

View File

@@ -420,10 +420,17 @@ bool IsSNIAvailable() {
if (reply.isValid()) {
return reply.value().toBool();
} else if (reply.error().type() != QDBusError::ServiceUnknown) {
LOG(("SNI Error: %1").arg(reply.error().message()));
}
switch (reply.error().type()) {
case QDBusError::Disconnected:
case QDBusError::ServiceUnknown:
return false;
default:
break;
}
LOG(("SNI Error: %1").arg(reply.error().message()));
return false;
}