1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Remove unnecessary empty line from Dictionaries

(cherry picked from commit 7b1ad6fbe0)
This commit is contained in:
Tomasz Chabora
2020-09-24 13:23:06 +02:00
committed by Rémi Verschelde
parent fa81e3621f
commit b3a23b2efb

View File

@@ -1750,11 +1750,14 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str
write(E->get(), p_store_string_func, p_store_string_ud, p_encode_res_func, p_encode_res_ud);
p_store_string_func(p_store_string_ud, ": ");
write(dict[E->get()], p_store_string_func, p_store_string_ud, p_encode_res_func, p_encode_res_ud);
if (E->next())
if (E->next()) {
p_store_string_func(p_store_string_ud, ",\n");
} else {
p_store_string_func(p_store_string_ud, "\n");
}
}
p_store_string_func(p_store_string_ud, "\n}");
p_store_string_func(p_store_string_ud, "}");
} break;
case Variant::ARRAY: {