Skip to content

Commit cdf0318

Browse files
committed
ref: remove another redundant null-check
1 parent 91f5013 commit cdf0318

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Sentry.Serilog/SentrySink.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ private void InnerEmit(LogEvent logEvent)
9797
}
9898
}
9999

100-
var hub = _hubAccessor();
101-
if (hub is null || !hub.IsEnabled)
100+
if (_hubAccessor() is not { IsEnabled: true } hub)
102101
{
103102
return;
104103
}

0 commit comments

Comments
 (0)