diff options
author | Voylin <0voylin0@gmail.com> | 2022-09-11 16:56:49 +0900 |
---|---|---|
committer | Voylin <0voylin0@gmail.com> | 2022-09-11 16:56:49 +0900 |
commit | e5814c3f813f223ed90614c657cb037fb009906a (patch) | |
tree | 3aa8602cb448e567a658c5e38f8ea0534c443f75 | |
parent | b52305351d417c47ce019529fb511ecfd72c07e4 (diff) |
Fix for recurring check in gdscript_cach.cpp
-rw-r--r-- | modules/gdscript/gdscript_cache.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index 48d5fbc569..c25f5b58d5 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -146,9 +146,7 @@ String GDScriptCache::get_source_code(const String &p_path) { Vector<uint8_t> source_file; Error err; Ref<FileAccess> f = FileAccess::open(p_path, FileAccess::READ, &err); - if (err) { - ERR_FAIL_COND_V(err, ""); - } + ERR_FAIL_COND_V(err, ""); uint64_t len = f->get_length(); source_file.resize(len + 1); |