Skip to content

Commit 0159145

Browse files
Update the code-snippets in the documentation (#2716)
Signed-off-by: polly-updater-bot[bot] <138034000+polly-updater-bot[bot]@users.noreply.github.com> Co-authored-by: polly-updater-bot[bot] <138034000+polly-updater-bot[bot]@users.noreply.github.com>
1 parent f25f2c5 commit 0159145

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

docs/strategies/retry.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,7 @@ ImmutableArray<Type> strategyExceptions =
487487
typeof(RateLimitRejectedException),
488488
];
489489

490-
ImmutableArray<Type> retryableExceptions = networkExceptions
491-
.Union(strategyExceptions)
492-
.ToImmutableArray();
490+
ImmutableArray<Type> retryableExceptions = [.. networkExceptions.Union(strategyExceptions)];
493491

494492
var retry = new ResiliencePipelineBuilder()
495493
.AddRetry(new()

0 commit comments

Comments
 (0)