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);