More codespell fixes, do more changes from previous ignore list

This commit is contained in:
Rémi Verschelde
2023-02-01 10:49:05 +01:00
parent c40020513a
commit e52213e2fa
16 changed files with 64 additions and 64 deletions

View File

@@ -2379,15 +2379,15 @@ Error ResourceFormatSaverText::set_uid(const String &p_path, ResourceUID::ID p_u
String local_path = ProjectSettings::get_singleton()->localize_path(p_path);
Error err = OK;
{
Ref<FileAccess> fo = FileAccess::open(p_path, FileAccess::READ);
if (fo.is_null()) {
Ref<FileAccess> file = FileAccess::open(p_path, FileAccess::READ);
if (file.is_null()) {
ERR_FAIL_V(ERR_CANT_OPEN);
}
ResourceLoaderText loader;
loader.local_path = local_path;
loader.res_path = loader.local_path;
err = loader.set_uid(fo, p_uid);
err = loader.set_uid(file, p_uid);
}
if (err == OK) {