syntax fixes

This commit is contained in:
Szybet 2022-08-13 00:06:37 +02:00
parent e4aada6156
commit 118e4db69d

View file

@ -236,7 +236,6 @@ QString userapps::parseJsonShow(QJsonObject json)
QJsonArray array = value.toArray(); QJsonArray array = value.toArray();
if(key == "RequiredFeatures") { if(key == "RequiredFeatures") {
bool foundRequiredFeature = false; bool foundRequiredFeature = false;
for(QJsonValueRef ref: array) { for(QJsonValueRef ref: array) {
foundRequiredFeature = true; foundRequiredFeature = true;
int id = ref.toInt(); int id = ref.toInt();
@ -254,7 +253,8 @@ QString userapps::parseJsonShow(QJsonObject json)
if(foundRequiredFeature == true) { if(foundRequiredFeature == true) {
appendString.remove(appendString.size() - 2, 2); appendString.remove(appendString.size() - 2, 2);
} else { }
else {
appendString.append("None"); appendString.append("None");
} }
} }