diff --git a/src/Tgstation.Server.Host/Transfer/FileUploadProvider.cs b/src/Tgstation.Server.Host/Transfer/FileUploadProvider.cs
index 31a691b36a..db7965f545 100644
--- a/src/Tgstation.Server.Host/Transfer/FileUploadProvider.cs
+++ b/src/Tgstation.Server.Host/Transfer/FileUploadProvider.cs
@@ -9,8 +9,6 @@ using Tgstation.Server.Api.Models;
using Tgstation.Server.Api.Models.Response;
using Tgstation.Server.Host.IO;
-#nullable disable
-
namespace Tgstation.Server.Host.Transfer
{
///
@@ -27,7 +25,7 @@ namespace Tgstation.Server.Host.Transfer
///
/// The for the .
///
- readonly TaskCompletionSource streamTcs;
+ readonly TaskCompletionSource streamTcs;
///
/// The that completes in or when is called.
@@ -42,7 +40,7 @@ namespace Tgstation.Server.Host.Transfer
///
/// The that occurred while processing the upload if any.
///
- ErrorMessageResponse errorMessage;
+ ErrorMessageResponse? errorMessage;
///
/// Initializes a new instance of the class.
@@ -54,7 +52,7 @@ namespace Tgstation.Server.Host.Transfer
Ticket = ticket ?? throw new ArgumentNullException(nameof(ticket));
ticketExpiryCts = new CancellationTokenSource();
- streamTcs = new TaskCompletionSource();
+ streamTcs = new TaskCompletionSource();
completionTcs = new TaskCompletionSource();
this.streamKind = streamKind;
}
@@ -68,7 +66,7 @@ namespace Tgstation.Server.Host.Transfer
}
///
- public async ValueTask GetResult(CancellationToken cancellationToken)
+ public async ValueTask GetResult(CancellationToken cancellationToken)
{
using (cancellationToken.Register(() => streamTcs.TrySetCanceled(cancellationToken)))
using (ticketExpiryCts.Token.Register(() => streamTcs.TrySetResult(null)))
@@ -90,14 +88,14 @@ namespace Tgstation.Server.Host.Transfer
/// The containing uploaded data.
/// The for the operation.
/// A resulting in , otherwise.
- public async ValueTask Completion(Stream stream, CancellationToken cancellationToken)
+ public async ValueTask Completion(Stream stream, CancellationToken cancellationToken)
{
ArgumentNullException.ThrowIfNull(stream);
if (ticketExpiryCts.IsCancellationRequested)
return new ErrorMessageResponse(ErrorCode.ResourceNotPresent);
- Stream bufferedStream = null;
+ Stream? bufferedStream = null;
try
{
switch (streamKind)