fixes cancellation token default value

This commit is contained in:
Philipp Häfelfinger 2022-11-19 10:01:09 +01:00
parent 3a2129a8b3
commit 02624731c2

View File

@ -4,7 +4,7 @@ namespace Piwigo.Client;
public static class FileInfoExtensions
{
public static async Task<string> CalculateMd5SumAsync(this FileInfo file, CancellationToken cancellationToken)
public static async Task<string> CalculateMd5SumAsync(this FileInfo file, CancellationToken cancellationToken = default)
{
using var md5 = MD5.Create();
await using var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read);