File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
src/WebJobs.Script/Extensions Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,16 @@ public static bool IsFatal(this Exception exception)
14
14
{
15
15
while ( exception != null )
16
16
{
17
- if ( ( exception is OutOfMemoryException && ! ( exception is InsufficientMemoryException ) ) ||
18
- exception is ThreadAbortException ||
19
- exception is AccessViolationException ||
20
- exception is SEHException ||
21
- exception is StackOverflowException )
17
+ if ( exception
18
+ is ( OutOfMemoryException and not InsufficientMemoryException )
19
+ or ThreadAbortException
20
+ or AccessViolationException
21
+ or SEHException
22
+ or StackOverflowException )
22
23
{
23
24
return true ;
24
25
}
25
26
26
- if ( exception is TypeInitializationException &&
27
- exception is TargetInvocationException )
28
- {
29
- break ;
30
- }
31
-
32
27
exception = exception . InnerException ;
33
28
}
34
29
You can’t perform that action at this time.
0 commit comments