Skip to content

Commit fde3481

Browse files
committed
not sure how I missed enabling nullable here
1 parent cf7b96f commit fde3481

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/BizHawk.Client.Common/FileStreamWithTemp.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Diagnostics;
1+
#nullable enable
2+
3+
using System.Diagnostics;
24
using System.IO;
35

46
using BizHawk.Common.StringExtensions;
@@ -7,7 +9,7 @@ namespace BizHawk.Client.Common
79
{
810
internal class FileStreamWithTemp : IDisposable
911
{
10-
public FileStream Stream;
12+
public FileStream? Stream { get; private set; }
1113
public string FinalPath;
1214
public string TempPath;
1315

src/BizHawk.Client.Common/FrameworkZipWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static FileWriteResult<FrameworkZipWriter> Create(string path, int compre
4141

4242
FrameworkZipWriter ret = new(compressionLevel);
4343
ret._fs = fs.Value!;
44-
ret._archive = new(ret._fs.Stream, ZipArchiveMode.Create, leaveOpen: true);
44+
ret._archive = new(ret._fs.Stream!, ZipArchiveMode.Create, leaveOpen: true);
4545

4646
return fs.Convert(ret);
4747
}

0 commit comments

Comments
 (0)