Skip to content

Commit

Permalink
(maint) fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-a committed Oct 27, 2023
1 parent 6f721b6 commit e2f513b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ public static class GitHubClientExtensions

return TimeSpan.FromSeconds(secondsToWait);
},
async (ex, _, _, ctx) =>
(ex, _, _, ctx) =>
{
var cancellationTokenSource = (CancellationTokenSource)ctx[CancellationTokenSourceKey];
if (ex is Octokit.NotFoundException)
{
AnsiConsole.MarkupLine($"[red]{ex.GetType().Name}: {ex.Message}[/]");
cancellationTokenSource.Cancel();
}

return Task.CompletedTask;
});

public static async Task<T> WithRetry<T>(
Expand Down

0 comments on commit e2f513b

Please sign in to comment.