fix clang-format failing

This commit is contained in:
cullvox 2023-09-09 19:50:13 -04:00
parent 04aa0155bf
commit 05f4214cc5

View File

@ -202,10 +202,9 @@ bool processMCMeta(ResourcePack& pack, QByteArray&& raw_data)
QString build_desc;
auto arr = desc_val.toArray();
for(const QJsonValue& dict : arr) {
for (const QJsonValue& dict : arr) {
// must be an object, for a dictionary
if (!dict.isObject())
{
if (!dict.isObject()) {
qWarning() << "Invalid component object.";
continue;
}
@ -213,8 +212,7 @@ bool processMCMeta(ResourcePack& pack, QByteArray&& raw_data)
auto obj = dict.toObject();
auto val = obj.value(obj.keys()[0]);
if (!val.isString())
{
if (!val.isString()) {
qWarning() << "Invalid text description type in components.";
continue;
}