Formatting tweaks
This commit is contained in:
parent
8d0964845f
commit
eddce2ad97
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue