Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed May 27, 2020
1 parent a68db31 commit 8f82469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MvvmHelpers/MvvmHelpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<ItemGroup>
<None Include="Images\Icon.png" Pack="true" PackagePath="\"/>

<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19554-01" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions MvvmHelpers/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public async static Task<T> WithTimeout<T>(this Task<T> 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<T> ? task.Result : default;
#pragma warning restore CS8603 // Possible null reference return.
}

/// <summary>
Expand Down

0 comments on commit 8f82469

Please sign in to comment.