diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 49e6fc8ec22..6db80544f89 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -9,7 +9,7 @@ true $(NoWarn);CA1010;CA1031;CA1032;CA1033;CA1051;CA1062;CA1063;CA1064;CA1068;CA1710;CA1716;CA1724;CA1805;CA1815;CA1816;CA2211 $(NoWarn);S2223;S3215;S3246;S3971;S4039;S4049;S4457 - $(NoWarn);SA1108;SA1118;SA1414 + $(NoWarn);SA1414 $(NoWarn);RS0037; diff --git a/src/Polly/Timeout/TimeoutEngine.cs b/src/Polly/Timeout/TimeoutEngine.cs index 5bed28927e7..199da1b4fab 100644 --- a/src/Polly/Timeout/TimeoutEngine.cs +++ b/src/Polly/Timeout/TimeoutEngine.cs @@ -46,8 +46,9 @@ internal static TResult Implementation( */ actionTask.Wait(timeoutCancellationTokenSource.Token); } - catch (AggregateException ex) when (ex.InnerExceptions.Count == 1) // Issue #270. Unwrap extra AggregateException caused by the way pessimistic timeout policy for synchronous executions is necessarily constructed. + catch (AggregateException ex) when (ex.InnerExceptions.Count == 1) { + // Issue #270. Unwrap extra AggregateException caused by the way pessimistic timeout policy for synchronous executions is necessarily constructed. ExceptionDispatchInfo.Capture(ex.InnerException).Throw(); }