mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Remove redundant "== true" code
If it can be compared to a boolean, it can be evaluated as one in-place.
This commit is contained in:
parent
ffe94ef4e2
commit
37386f112b
19 changed files with 27 additions and 27 deletions
|
@ -228,7 +228,7 @@ void VisualScriptPropertySelector::_update_search() {
|
|||
}
|
||||
}
|
||||
|
||||
if (seq_connect == true && visual_script_generic == false) {
|
||||
if (seq_connect && visual_script_generic == false) {
|
||||
String text = search_box->get_text();
|
||||
create_visualscript_item(String("VisualScriptCondition"), root, text, String("Condition"));
|
||||
create_visualscript_item(String("VisualScriptSwitch"), root, text, String("Switch"));
|
||||
|
@ -392,7 +392,7 @@ void VisualScriptPropertySelector::get_visual_node_names(const String &root_filt
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (is_filter == true) {
|
||||
if (is_filter) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue