Skip to content

Commit ccc3268

Browse files
committed
remove unreachable code
1 parent 233198d commit ccc3268

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

libraries/src/AWS.Lambda.Powertools.Tracing/Internal/TracingAspect.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,6 @@ private bool TracingDisabled()
238238

239239
private bool CaptureResponse(TracingCaptureMode captureMode)
240240
{
241-
if (TracingDisabled())
242-
return false;
243-
244241
return captureMode switch
245242
{
246243
TracingCaptureMode.EnvironmentVariable => _powertoolsConfigurations.TracerCaptureResponse,
@@ -252,9 +249,6 @@ private bool CaptureResponse(TracingCaptureMode captureMode)
252249

253250
private bool CaptureError(TracingCaptureMode captureMode)
254251
{
255-
if (TracingDisabled())
256-
return false;
257-
258252
return captureMode switch
259253
{
260254
TracingCaptureMode.EnvironmentVariable => _powertoolsConfigurations.TracerCaptureError,

0 commit comments

Comments
 (0)