refactor: remove tr_sys_file_flush() (#6647)

This commit is contained in:
Charles Kerr
2024-03-03 23:29:38 -06:00
committed by GitHub
parent 250f43ae68
commit efd6790973
5 changed files with 4 additions and 47 deletions

View File

@@ -55,12 +55,12 @@ int main(int argc, char** argv)
}
else
{
std::fclose(out);
std::remove(tmp_result_path.c_str());
(void)std::fclose(out);
(void)std::remove(tmp_result_path.c_str());
return 1;
}
std::fclose(out);
(void)std::fclose(out);
tr_sys_path_rename(tmp_result_path.c_str(), result_path.c_str());
return 0;
}