fix(*): Initialise content with a new stream so it can be written to

This commit is contained in:
Josh Creek
2021-08-30 12:44:07 +01:00
parent 4232dd9a03
commit 82fd25881b
@@ -61,6 +61,7 @@ namespace FileRepository.Repositories
public async Task<RepoFile> ReadFileAsync(string fileName)
{
RepoFile repoFile = new RepoFile();
repoFile.Content = new System.IO.MemoryStream();
using (SftpClient client = new SftpClient(this.host, this.port == 0 ? 22 : this.port, this.username, this.password))
{