From 02624731c26c20d5915fabaf78f9628db555cac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sat, 19 Nov 2022 10:01:09 +0100 Subject: [PATCH] fixes cancellation token default value --- src/Piwigo.Client/FileInfoExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Piwigo.Client/FileInfoExtensions.cs b/src/Piwigo.Client/FileInfoExtensions.cs index 685204b..5e9f98e 100644 --- a/src/Piwigo.Client/FileInfoExtensions.cs +++ b/src/Piwigo.Client/FileInfoExtensions.cs @@ -4,7 +4,7 @@ namespace Piwigo.Client; public static class FileInfoExtensions { - public static async Task CalculateMd5SumAsync(this FileInfo file, CancellationToken cancellationToken) + public static async Task CalculateMd5SumAsync(this FileInfo file, CancellationToken cancellationToken = default) { using var md5 = MD5.Create(); await using var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read);