mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #29283 from qarmin/fix_some_always_same_values
Remove always true/false values
This commit is contained in:
commit
5c66771e3e
32 changed files with 128 additions and 184 deletions
|
@ -486,9 +486,7 @@ Error XMLParser::open(const String &p_path) {
|
|||
Error err;
|
||||
FileAccess *file = FileAccess::open(p_path, FileAccess::READ, &err);
|
||||
|
||||
if (err) {
|
||||
ERR_FAIL_COND_V(err != OK, err);
|
||||
}
|
||||
ERR_FAIL_COND_V(err != OK, err);
|
||||
|
||||
length = file->get_len();
|
||||
ERR_FAIL_COND_V(length < 1, ERR_FILE_CORRUPT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue