You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -1194,7 +1194,7 @@ bool CSharpInstance::set(const StringName &p_name, const Variant &p_value) {
|
||||
|
||||
MonoObject *ret = method->invoke(mono_object, args);
|
||||
|
||||
if (ret && GDMonoMarshal::unbox<MonoBoolean>(ret) == true)
|
||||
if (ret && GDMonoMarshal::unbox<MonoBoolean>(ret))
|
||||
return true;
|
||||
|
||||
break;
|
||||
@@ -1459,7 +1459,7 @@ MonoObject *CSharpInstance::_internal_new_managed() {
|
||||
void CSharpInstance::mono_object_disposed(MonoObject *p_obj) {
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
CRASH_COND(base_ref == true);
|
||||
CRASH_COND(base_ref);
|
||||
CRASH_COND(gchandle.is_null());
|
||||
#endif
|
||||
CSharpLanguage::get_singleton()->release_script_gchandle(p_obj, gchandle);
|
||||
|
||||
Reference in New Issue
Block a user