Formatting tweaks

This commit is contained in:
Cameron Cowen 2021-05-21 13:48:27 +01:00
parent 8d0964845f
commit eddce2ad97

View file

@ -48,11 +48,13 @@ namespace Elsa.Activities.File
throw new ApplicationException("Unsupported copy mode");
}
using var fs = new FileStream(Path, fileMode, fileAccess);
using var sw = new StreamWriter(fs);
await sw.WriteLineAsync((string)Content);
await sw.FlushAsync();
await fs.FlushAsync();
using (var fs = new FileStream(Path, fileMode, fileAccess))
using (var sw = new StreamWriter(fs))
{
await sw.WriteLineAsync(Content);
await sw.FlushAsync();
await fs.FlushAsync();
}
return Done();
}