Skip to content

Commit 93a5bef

Browse files
committed
refactor: remove superfluous null propagation in hangfire noise filter
1 parent 093c02c commit 93a5bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IntelliTect.Coalesce/Helpers/HangfireSqlServerNoiseFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public override void OnEnd(Activity activity)
3535
activity.Status != ActivityStatusCode.Error &&
3636
IsHangfireThread(Thread.CurrentThread) &&
3737
(
38-
commandText?.Contains("[HangFire]") == true ||
39-
commandText?.StartsWith("exec sp_getapplock ", StringComparison.InvariantCultureIgnoreCase) == true ||
38+
commandText.Contains("[HangFire]") ||
39+
commandText.StartsWith("exec sp_getapplock ", StringComparison.InvariantCultureIgnoreCase) ||
4040
commandText is
4141
"Commit" or
4242
"sp_getapplock" or

0 commit comments

Comments
 (0)