Skip to content

Commit

Permalink
progress will never be null
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Jul 15, 2024
1 parent 3457250 commit 07c40f6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions TwitchDownloaderCore/ChatDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,8 @@ private static async Task<List<Comment>> DownloadSection(Range downloadRange, st

cursor = commentResponse[0].data.video.comments.edges.Last().cursor;

if (progress != null)
{
int percent = (int)Math.Floor((latestMessage - videoStart) / videoDuration * 100);
progress.Report(percent);
}
var percent = (int)Math.Floor((latestMessage - videoStart) / videoDuration * 100);
progress.Report(percent);

if (isFirst)
{
Expand Down

0 comments on commit 07c40f6

Please sign in to comment.