From 8f82469c9931f7e6ec08cfc3c34807f12b0ea3a3 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Tue, 26 May 2020 21:45:52 -0700 Subject: [PATCH] Fix build error --- MvvmHelpers/MvvmHelpers.csproj | 2 +- MvvmHelpers/Utils.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MvvmHelpers/MvvmHelpers.csproj b/MvvmHelpers/MvvmHelpers.csproj index d802f3d..8be0785 100644 --- a/MvvmHelpers/MvvmHelpers.csproj +++ b/MvvmHelpers/MvvmHelpers.csproj @@ -52,7 +52,7 @@ - + diff --git a/MvvmHelpers/Utils.cs b/MvvmHelpers/Utils.cs index 86e4709..1ee8395 100644 --- a/MvvmHelpers/Utils.cs +++ b/MvvmHelpers/Utils.cs @@ -22,7 +22,9 @@ public async static Task WithTimeout(this Task task, int timeoutInMilli var retTask = await Task.WhenAny(task, Task.Delay(timeoutInMilliseconds)) .ConfigureAwait(false); +#pragma warning disable CS8603 // Possible null reference return. return retTask is Task ? task.Result : default; +#pragma warning restore CS8603 // Possible null reference return. } ///