fixes
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user