You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 17:36:07 +00:00
Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
This commit is contained in:
@@ -117,8 +117,9 @@ void EditorPluginSettings::update_plugins() {
|
||||
}
|
||||
|
||||
void EditorPluginSettings::_plugin_activity_changed() {
|
||||
if (updating)
|
||||
if (updating) {
|
||||
return;
|
||||
}
|
||||
|
||||
TreeItem *ti = plugin_list->get_edited();
|
||||
ERR_FAIL_COND(!ti);
|
||||
@@ -143,8 +144,9 @@ void EditorPluginSettings::_create_clicked() {
|
||||
|
||||
void EditorPluginSettings::_cell_button_pressed(Object *p_item, int p_column, int p_id) {
|
||||
TreeItem *item = Object::cast_to<TreeItem>(p_item);
|
||||
if (!item)
|
||||
if (!item) {
|
||||
return;
|
||||
}
|
||||
if (p_id == BUTTON_PLUGIN_EDIT) {
|
||||
if (p_column == 4) {
|
||||
String dir = item->get_metadata(0);
|
||||
|
||||
Reference in New Issue
Block a user