Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c4ff1cf

Browse files
committed
Fix potential NRE
1 parent abe9c52 commit c4ff1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/Installer/ZipHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public bool Extract(string archive, string outFolder, CancellationToken cancella
9090
progress: (totalRead, timeToFinish) =>
9191
{
9292
totalBytes += totalRead;
93-
return onProgress(totalBytes, totalSize);
93+
return onProgress?.Invoke(totalBytes, totalSize) ?? true;
9494
}))
9595
return false;
9696
}

0 commit comments

Comments
 (0)