not sure if this drops file earlier

This commit is contained in:
Quaternions 2024-01-11 16:37:26 -08:00
parent a5c01ff9cf
commit 1ba8d636f1

View File

@ -799,7 +799,8 @@ async fn decompile_history_into_git(config:DecompileHistoryConfig)->AResult<()>{
let mut file_path=config.input_folder.clone();
tokio::task::spawn(async move{
file_path.push(format!("{}_v{}.rbxl",asset_version.assetId,asset_version.assetVersionNumber));
let contents=generate_decompiled_context(std::fs::File::open(file_path)?)?;
let file=std::fs::File::open(file_path)?;
let contents=generate_decompiled_context(file)?;
Ok::<_,anyhow::Error>((asset_version,contents))
})
})