1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-22 19:18:47 +00:00

Fix nullability

This commit is contained in:
Oliver Booth 2022-12-04 15:39:19 +00:00
parent d065592634
commit e98a0662ce
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -92,7 +92,7 @@ public sealed partial class VirtualParadiseClient
ReasonCode reason;
if (!_objectCompletionSources.TryGetValue(id,
out TaskCompletionSource<(ReasonCode, VirtualParadiseObject)>? taskCompletionSource))
out TaskCompletionSource<(ReasonCode, VirtualParadiseObject?)>? taskCompletionSource))
{
taskCompletionSource = new TaskCompletionSource<(ReasonCode, VirtualParadiseObject?)>();
_objectCompletionSources.TryAdd(id, taskCompletionSource);