You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00: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:
@@ -194,7 +194,7 @@ private:
|
||||
if (!has_data) {
|
||||
// 3. Extract the data to a temporary location to load from there.
|
||||
Ref<DirAccess> da = DirAccess::create_for_path(packed_path);
|
||||
ERR_FAIL_NULL(da);
|
||||
ERR_FAIL_COND(da.is_null());
|
||||
ERR_FAIL_COND(da->copy_dir(packed_path, data_dir_root) != OK);
|
||||
}
|
||||
api_assemblies_dir = data_dir_root;
|
||||
|
||||
Reference in New Issue
Block a user