Skip to content

Commit

Permalink
no async flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Nov 7, 2024
1 parent 65707fa commit e395d19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public async Task<string> GetTextAsync(string path, Stream fileStream)
{
if (!fileStream.CanSeek)
{
seekableStream = new FileStream(Path.GetTempFileName(), FileMode.OpenOrCreate, FileAccess.Write, FileShare.None, 4096, FileOptions.DeleteOnClose | FileOptions.Asynchronous);
seekableStream = new FileStream(Path.GetTempFileName(), FileMode.OpenOrCreate, FileAccess.Write, FileShare.None, 4096, FileOptions.DeleteOnClose);

await fileStream.CopyToAsync(seekableStream);

Expand Down

0 comments on commit e395d19

Please sign in to comment.