From 3254c5391f2d41e2e4e37f94d5d21622a25375f1 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Wed, 27 Sep 2023 12:03:53 +0100 Subject: [PATCH] Update docs source Rename exception variable. --- src/Snippets/Docs/Fallback.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Snippets/Docs/Fallback.cs b/src/Snippets/Docs/Fallback.cs index 7c70fd4bd00..71a681bd697 100644 --- a/src/Snippets/Docs/Fallback.cs +++ b/src/Snippets/Docs/Fallback.cs @@ -125,9 +125,9 @@ public static async ValueTask Action() return Outcome.FromResult(result); }, context, "state"); - if (outcome.Exception is HttpRequestException hre) + if (outcome.Exception is HttpRequestException httpEx) { - throw new CustomNetworkException("Replace thrown exception", hre); + throw new CustomNetworkException("Replace thrown exception", httpEx); } ResilienceContextPool.Shared.Return(context);