This commit is contained in:
2025-03-24 23:54:00 +03:00
parent 0cf28d12ca
commit 852773e1ea
2 changed files with 55 additions and 38 deletions

View File

@@ -194,12 +194,10 @@ async fn generate(request: Json<GenerationRequest<'_>>) -> Result<NamedFile, Gen
}
match NamedFile::open(output_file).await {
Err(e) => {
return Err(GenerationError::InternalError(format!(
"Failed to open output file: {}",
e
)));
}
Err(e) => Err(GenerationError::InternalError(format!(
"Failed to open output file: {}",
e
))),
Ok(f) => Ok(f),
}
}