From 0c86590f75ae5c7d707095250e1e4d3706626937 Mon Sep 17 00:00:00 2001 From: F K <54195004+fredjk-gh@users.noreply.github.com> Date: Wed, 23 Mar 2022 06:42:28 -0400 Subject: [PATCH] Use HasFlag in another spot. (#68) Just a tiny cleanup. --- ObservatoryFramework/EventArgs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ObservatoryFramework/EventArgs.cs b/ObservatoryFramework/EventArgs.cs index fdef8be..0a38c96 100644 --- a/ObservatoryFramework/EventArgs.cs +++ b/ObservatoryFramework/EventArgs.cs @@ -102,7 +102,7 @@ namespace Observatory.Framework /// A boolean; True iff the state provided represents a batch-mode read. public static bool IsBatchRead(LogMonitorState state) { - return (state & (LogMonitorState.Batch | LogMonitorState.PreRead)) > 0; + return state.HasFlag(LogMonitorState.Batch) || state.HasFlag(LogMonitorState.PreRead); } } }