summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-09-13 10:45:50 +0200
committerGitHub <noreply@github.com>2022-09-13 10:45:50 +0200
commitb2875d1acc4f7788c39432719627a9aa367ecd87 (patch)
tree0a252e4afec15ee754259fb543dfdda8717ecc0e /modules/gdscript
parentb853110890c12356ae20e7808f24277c2191d708 (diff)
parente5814c3f813f223ed90614c657cb037fb009906a (diff)
Merge pull request #65643 from voylin/fix_recurring_check_in_gdscript_cache.cpp
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_cache.cpp4
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);