mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +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:
@@ -48,7 +48,7 @@ Error ZIPPacker::close() {
|
||||
|
||||
Error err = zipClose(zf, nullptr) == ZIP_OK ? OK : FAILED;
|
||||
if (err == OK) {
|
||||
DEV_ASSERT(fa == nullptr);
|
||||
DEV_ASSERT(fa.is_null());
|
||||
zf = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user