summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-06-20 16:59:48 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-06-20 16:59:48 +0200
commit072e40368e19e0f88ec1fbb61fe463a6fffcca36 (patch)
tree2a5c9383550dc22392bb210d5be570e1baa33fe2 /editor/plugins/script_editor_plugin.cpp
parent7a8dcb9a114d742f9bc1e269d738903c00729b8b (diff)
downloadredot-engine-072e40368e19e0f88ec1fbb61fe463a6fffcca36.tar.gz
Fix always true/false values
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 839c9483d7..505e0f841b 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -1868,9 +1868,7 @@ Ref<TextFile> ScriptEditor::_load_text_file(const String &p_path, Error *r_error
Ref<TextFile> text_res(text_file);
Error err = text_file->load_text(path);
- if (err != OK) {
- ERR_FAIL_COND_V(err != OK, RES());
- }
+ ERR_FAIL_COND_V(err != OK, RES());
text_file->set_file_path(local_path);
text_file->set_path(local_path, true);