mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Cleanup of raw nullptr checks with Ref
Using `is_valid/null` over checks with `nullptr` or `ERR_FAIL_NULL` etc.
This commit is contained in:
@@ -140,7 +140,7 @@ Vector<String> EditorExportPlugin::get_ios_project_static_libs() const {
|
||||
}
|
||||
|
||||
Variant EditorExportPlugin::get_option(const StringName &p_name) const {
|
||||
ERR_FAIL_NULL_V(export_preset, Variant());
|
||||
ERR_FAIL_COND_V(export_preset.is_null(), Variant());
|
||||
return export_preset->get(p_name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user