You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove redundant "== false" code
Some of this code has been re-organized. f
This commit is contained in:
@@ -853,7 +853,7 @@ public:
|
||||
|
||||
virtual int step(const Variant **p_inputs, Variant **p_outputs, StartMode p_start_mode, Variant *p_working_mem, Variant::CallError &r_error, String &r_error_str) {
|
||||
|
||||
if (instance->get_variable(variable, p_outputs[0]) == false) {
|
||||
if (!instance->get_variable(variable, p_outputs[0])) {
|
||||
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
r_error_str = RTR("VariableGet not found in script: ") + "'" + String(variable) + "'";
|
||||
return false;
|
||||
@@ -975,7 +975,7 @@ public:
|
||||
|
||||
virtual int step(const Variant **p_inputs, Variant **p_outputs, StartMode p_start_mode, Variant *p_working_mem, Variant::CallError &r_error, String &r_error_str) {
|
||||
|
||||
if (instance->set_variable(variable, *p_inputs[0]) == false) {
|
||||
if (!instance->set_variable(variable, *p_inputs[0])) {
|
||||
|
||||
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
r_error_str = RTR("VariableSet not found in script: ") + "'" + String(variable) + "'";
|
||||
|
||||
Reference in New Issue
Block a user