From d83761ba80b90e17aaefaa83c7ece0fa89511266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 5 Apr 2021 14:09:59 +0200 Subject: Style: Apply clang-tidy's `readability-braces-around-statements` --- modules/visual_script/visual_script.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/visual_script/visual_script.cpp') diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index 3fe0b927af..6d5fff88d9 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -784,8 +784,9 @@ ScriptInstance *VisualScript::instance_create(Object *p_this) { variables.get_key_list(&keys); for (const List::Element *E = keys.front(); E; E = E->next()) { - if (!variables[E->get()]._export) + if (!variables[E->get()]._export) { continue; + } PropertyInfo p = variables[E->get()].info; p.name = String(E->get()); @@ -2085,10 +2086,11 @@ void VisualScriptInstance::create(const Ref &p_script, Object *p_o StringName var_name; - if (Object::cast_to(*node)) + if (Object::cast_to(*node)) { var_name = String(Object::cast_to(*node)->get_var_name()).strip_edges(); - else + } else { var_name = String(Object::cast_to(*node)->get_var_name()).strip_edges(); + } if (!local_var_indices.has(var_name)) { local_var_indices[var_name] = function.max_stack; -- cgit v1.2.3