mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 01:43:36 +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
|
@ -2639,7 +2639,7 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
|
|||
}
|
||||
undo_redo->create_action(TTR("Add Node"));
|
||||
undo_redo->add_do_method(script.ptr(), "add_node", edited_func, new_id, vnode_new, ofs);
|
||||
if (vnode_old.is_valid() && p_connecting == true) {
|
||||
if (vnode_old.is_valid() && p_connecting) {
|
||||
connect_seq(vnode_old, vnode_new, new_id);
|
||||
connect_data(vnode_old, vnode_new, new_id);
|
||||
}
|
||||
|
@ -2806,7 +2806,7 @@ void VisualScriptEditor::_selected_connect_node(const String &p_text, const Stri
|
|||
}
|
||||
}
|
||||
Ref<VisualScriptNode> vnode_old = script->get_node(edited_func, port_action_node);
|
||||
if (vnode_old.is_valid() && p_connecting == true) {
|
||||
if (vnode_old.is_valid() && p_connecting) {
|
||||
connect_seq(vnode_old, vnode, port_action_new_node);
|
||||
connect_data(vnode_old, vnode, port_action_new_node);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue