added brace wrapping after if and for

This commit is contained in:
fourtf
2018-10-21 13:43:02 +02:00
parent c6e1ec3c71
commit e259b9e39f
138 changed files with 4738 additions and 2237 deletions
+7 -3
View File
@@ -23,12 +23,16 @@ void LinkResolver::getLinkInfo(
auto statusCode = root.value("status").toInt();
QString response = QString();
QString linkString = url;
if (statusCode == 200) {
if (statusCode == 200)
{
response = root.value("tooltip").toString();
if (getSettings()->enableUnshortLinks) {
if (getSettings()->enableUnshortLinks)
{
linkString = root.value("link").toString();
}
} else {
}
else
{
response = root.value("message").toString();
}
successCallback(QUrl::fromPercentEncoding(response.toUtf8()),