From 25dc4a9b3c8cc545692f6f3787005993740ec630 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Wed, 8 Nov 2023 13:27:21 +1100 Subject: [PATCH] version --- src/Directory.Build.props | 2 +- src/Polyfill/PolyfillExtensions_Task.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 253c838e..876f4e9d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,7 +1,7 @@ - 1.30.0 + 1.31.0 1.0.0 Polyfill true diff --git a/src/Polyfill/PolyfillExtensions_Task.cs b/src/Polyfill/PolyfillExtensions_Task.cs index 9ea05f28..02bd8d2a 100644 --- a/src/Polyfill/PolyfillExtensions_Task.cs +++ b/src/Polyfill/PolyfillExtensions_Task.cs @@ -46,7 +46,7 @@ public static Task WaitAsync( throw new ArgumentNullException(nameof(target)); } - long totalMilliseconds = (long)timeout.TotalMilliseconds; + long totalMilliseconds = (long) timeout.TotalMilliseconds; if (totalMilliseconds < -1 || totalMilliseconds > MaxSupportedTimeout) { throw new ArgumentOutOfRangeException(nameof(timeout)); @@ -120,7 +120,7 @@ public static async Task WaitAsync( TimeSpan timeout, CancellationToken cancellationToken) { - await ((Task)target).WaitAsync(timeout, cancellationToken); + await ((Task) target).WaitAsync(timeout, cancellationToken); return target.Result; } }